nixos/spiped: replace activationScript via tmpfiles
This commit is contained in:
parent
f18ff2ec0b
commit
6987ff3a4f
@ -197,8 +197,9 @@ in
|
|||||||
script = "exec ${pkgs.spiped}/bin/spiped -F `cat /etc/spiped/$1.spec`";
|
script = "exec ${pkgs.spiped}/bin/spiped -F `cat /etc/spiped/$1.spec`";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.activationScripts.spiped = optionalString (cfg.config != {})
|
systemd.tmpfiles.rules = lib.mkIf (cfg.config != { }) [
|
||||||
"mkdir -p /var/lib/spiped";
|
"d /var/lib/spiped -"
|
||||||
|
];
|
||||||
|
|
||||||
# Setup spiped config files
|
# Setup spiped config files
|
||||||
environment.etc = mapAttrs' (name: cfg: nameValuePair "spiped/${name}.spec"
|
environment.etc = mapAttrs' (name: cfg: nameValuePair "spiped/${name}.spec"
|
||||||
|
Loading…
Reference in New Issue
Block a user