about summary refs log tree commit diff
path: root/nixos/modules/config/nix-channel.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/config/nix-channel.nix')
-rw-r--r--nixos/modules/config/nix-channel.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/config/nix-channel.nix b/nixos/modules/config/nix-channel.nix
index 0565c9cc8dad9..a7ca7a5c74a40 100644
--- a/nixos/modules/config/nix-channel.nix
+++ b/nixos/modules/config/nix-channel.nix
@@ -98,8 +98,7 @@ in
     nix.settings.nix-path = mkIf (! cfg.channel.enable) (mkDefault "");
 
     systemd.tmpfiles.rules = lib.mkIf cfg.channel.enable [
-      "f /root/.nix-channels -"
-      ''w+ "/root/.nix-channels" - - - - ${config.system.defaultChannel} nixos\n''
+      ''f /root/.nix-channels - - - - ${config.system.defaultChannel} nixos\n''
     ];
   };
 }