about summary refs log tree commit diff
path: root/nixos/modules/services/misc/lidarr.nix
diff options
context:
space:
mode:
authorh7x4 <h7x4@nani.wtf>2024-01-11 22:10:18 +0100
committerh7x4 <h7x4@nani.wtf>2024-01-24 05:13:17 +0100
commitf5d513c5738e630bb053f897b789801bff078ec9 (patch)
tree03fa417b85608c572de4eec6f87a4bbd8ef82545 /nixos/modules/services/misc/lidarr.nix
parentbfc38653369649ad316825bc21005c5105599ec2 (diff)
treewide: use new tmpfiles api
Diffstat (limited to 'nixos/modules/services/misc/lidarr.nix')
-rw-r--r--nixos/modules/services/misc/lidarr.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/lidarr.nix b/nixos/modules/services/misc/lidarr.nix
index 4dc0fc63863b7..8ceb567e88010 100644
--- a/nixos/modules/services/misc/lidarr.nix
+++ b/nixos/modules/services/misc/lidarr.nix
@@ -45,9 +45,10 @@ in
   };
 
   config = mkIf cfg.enable {
-    systemd.tmpfiles.rules = [
-      "d '${cfg.dataDir}' 0700 ${cfg.user} ${cfg.group} - -"
-    ];
+    systemd.tmpfiles.settings."10-lidarr".${cfg.dataDir}.d = {
+      inherit (cfg) user group;
+      mode = "0700";
+    };
 
     systemd.services.lidarr = {
       description = "Lidarr";