diff options
author | Mynacol <Mynacol@users.noreply.github.com> | 2024-02-14 18:44:37 +0100 |
---|---|---|
committer | Mynacol <Mynacol@users.noreply.github.com> | 2024-03-02 22:45:52 +0100 |
commit | 84f41005203d66b328328da1ee17094c74db5f39 (patch) | |
tree | 2ae1c1afab8009bc50db47e087b7f37f446c6ac0 | |
parent | f7a6e75b42a052345a9b7853ef31c7388712c88d (diff) |
rss-bridge: Use new tmpfiles syntax
-rw-r--r-- | nixos/modules/services/web-apps/rss-bridge.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nixos/modules/services/web-apps/rss-bridge.nix b/nixos/modules/services/web-apps/rss-bridge.nix index 87ef1b4da171a..0d344753de678 100644 --- a/nixos/modules/services/web-apps/rss-bridge.nix +++ b/nixos/modules/services/web-apps/rss-bridge.nix @@ -112,10 +112,16 @@ in }; }; }; - systemd.tmpfiles.rules = [ - "d '${configAttr.FileCache.path}' 0750 ${cfg.user} ${cfg.group} - -" - "z '${cfg.dataDir}/config.ini.php' 0750 ${cfg.user} ${cfg.group} - -" - ]; + systemd.tmpfiles.settings.rss-bridge = let + perm = { + mode = "0750"; + user = cfg.user; + group = cfg.group; + }; + in { + "${configAttr.FileCache.path}".d = perm; + "${cfg.dataDir}/config.ini.php".z = perm; + }; services.nginx = mkIf (cfg.virtualHost != null) { enable = true; |