diff options
author | nikstur <nikstur@outlook.com> | 2023-10-20 01:43:24 +0200 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2023-10-26 01:44:21 +0200 |
commit | 6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc (patch) | |
tree | 1f16ad82abaafad13ebe0c071a09811fd3804023 | |
parent | f18ff2ec0bc62f0b9823e637e0b9d3ba7eba2bf9 (diff) | |
download | nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.tar nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.tar.gz nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.tar.bz2 nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.tar.lz nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.tar.xz nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.tar.zst nixlib-6987ff3a4f70ea2c2a3de816eba82a06c9a6fddc.zip |
nixos/spiped: replace activationScript via tmpfiles
-rw-r--r-- | nixos/modules/services/networking/spiped.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/spiped.nix b/nixos/modules/services/networking/spiped.nix index 3e01ace54ad1..547317dbcbe2 100644 --- a/nixos/modules/services/networking/spiped.nix +++ b/nixos/modules/services/networking/spiped.nix @@ -197,8 +197,9 @@ in script = "exec ${pkgs.spiped}/bin/spiped -F `cat /etc/spiped/$1.spec`"; }; - system.activationScripts.spiped = optionalString (cfg.config != {}) - "mkdir -p /var/lib/spiped"; + systemd.tmpfiles.rules = lib.mkIf (cfg.config != { }) [ + "d /var/lib/spiped -" + ]; # Setup spiped config files environment.etc = mapAttrs' (name: cfg: nameValuePair "spiped/${name}.spec" |