no deps
This commit is contained in:
parent
c0cde009d9
commit
017149ea91
5
mod.nix
5
mod.nix
@ -48,11 +48,14 @@ in
|
|||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
users.users = mkIf cfg.enable { ${cfg.user} = { }; };
|
users.users = mkIf cfg.enable { ${cfg.user} = { }; };
|
||||||
system.activationScripts.brownpaper.text = ''
|
system.activationScripts.brownpaper = {
|
||||||
|
text = ''
|
||||||
mkdir -p ${toString cfg.dataDir}
|
mkdir -p ${toString cfg.dataDir}
|
||||||
chown ${toString cfg.user} -R ${toString cfg.dataDir}
|
chown ${toString cfg.user} -R ${toString cfg.dataDir}
|
||||||
${optionalString (cfg.pgpKeys != [ ]) "${keyScript}"}
|
${optionalString (cfg.pgpKeys != [ ]) "${keyScript}"}
|
||||||
'';
|
'';
|
||||||
|
deps = [ ];
|
||||||
|
};
|
||||||
systemd.services.brownpaper = mkIf cfg.enable {
|
systemd.services.brownpaper = mkIf cfg.enable {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user