alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
machines.ubik: facts -> vars
author
lassulus
date
1 year ago
(Jun 15, 2025, 12:21 PM CEST)
commit
440e218d
440e218db041186a87a2b20cee996cb8c0d3f823
parent
fc3613e3
fc3613e3ee7d3c6fd3769e3b37599c78e2670ff1
+3
-17
1 changed file
Expand all
Collapse all
Unified
Split
machines
ubik
config.nix
+3
-17
machines/ubik/config.nix
View file
Reviewed
···
41
41
hostName = "c.apanowicz.de";
42
42
package = pkgs.nextcloud30;
43
43
config.dbtype = "sqlite";
44
44
-
config.adminpassFile = "/run/nextcloud.pw";
44
44
+
config.adminpassFile = config.clan.core.vars.generators.nextcloud-pw.files.nextcloud-pw.path;
45
45
https = true;
46
46
maxUploadSize = "9001M";
47
47
};
48
48
-
clanCore.facts.services.nextcloud-pw = {
49
49
-
secret."nextcloud.pw" = { };
50
50
-
generator.script = ''
51
51
-
echo "$prompt_value" > "$secrets"/nextcloud.pw
52
52
-
'';
53
53
-
generator.prompt = ''
54
54
-
please enter the nextcloud admin password:
55
55
-
'';
48
48
+
clan.core.vars.generators.nextcloud-pw = {
49
49
+
prompts.nextcloud-pw.persist = true;
56
50
};
57
57
-
systemd.services.nextcloud-setup.serviceConfig.ExecStartPre = [
58
58
-
"+${pkgs.writeDash "copy-pw" ''
59
59
-
${pkgs.rsync}/bin/rsync \
60
60
-
--chown nextcloud:nextcloud \
61
61
-
--chmod 0700 \
62
62
-
${config.clanCore.facts.services.nextcloud-pw.secret."nextcloud.pw".path} /run/nextcloud.pw
63
63
-
''}"
64
64
-
];
65
51
66
52
# mail
67
53
lass.usershadow.enable = true;