Loading nixos/modules/config/nix-channel.nix +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ in systemd.tmpfiles.rules = lib.mkIf cfg.channel.enable [ "f /root/.nix-channels -" ''w "/root/.nix-channels" - - - - "${config.system.defaultChannel} nixos\n"'' ''w+ "/root/.nix-channels" - - - - ${config.system.defaultChannel} nixos\n'' ]; }; } nixos/tests/activation/nix-channel.nix +3 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,8 @@ nix.channel.enable = true; }; testScript = '' print(machine.succeed("cat /root/.nix-channels")) testScript = { nodes, ... }: '' assert machine.succeed("cat /root/.nix-channels") == "${nodes.machine.system.defaultChannel} nixos\n" ''; } Loading
nixos/modules/config/nix-channel.nix +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ in systemd.tmpfiles.rules = lib.mkIf cfg.channel.enable [ "f /root/.nix-channels -" ''w "/root/.nix-channels" - - - - "${config.system.defaultChannel} nixos\n"'' ''w+ "/root/.nix-channels" - - - - ${config.system.defaultChannel} nixos\n'' ]; }; }
nixos/tests/activation/nix-channel.nix +3 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,8 @@ nix.channel.enable = true; }; testScript = '' print(machine.succeed("cat /root/.nix-channels")) testScript = { nodes, ... }: '' assert machine.succeed("cat /root/.nix-channels") == "${nodes.machine.system.defaultChannel} nixos\n" ''; }