tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/spiped: replace activationScript via tmpfiles
nikstur
2 years ago
6987ff3a
f18ff2ec
+3
-2
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
networking
spiped.nix
+3
-2
nixos/modules/services/networking/spiped.nix
···
197
197
script = "exec ${pkgs.spiped}/bin/spiped -F `cat /etc/spiped/$1.spec`";
198
198
};
199
199
200
200
-
system.activationScripts.spiped = optionalString (cfg.config != {})
201
201
-
"mkdir -p /var/lib/spiped";
200
200
+
systemd.tmpfiles.rules = lib.mkIf (cfg.config != { }) [
201
201
+
"d /var/lib/spiped -"
202
202
+
];
202
203
203
204
# Setup spiped config files
204
205
environment.etc = mapAttrs' (name: cfg: nameValuePair "spiped/${name}.spec"