about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24 15:09:00 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24 15:09:00 +0200
commit373c14614b5e97f64b1c86523f85762aedc72698 (patch)
tree6e1eed47dd872e8ce82481d34a453a95084021be /nixos/modules/programs
parent8c65a2a18167072d46349ed23c5466174345e691 (diff)
downloadnixlib-373c14614b5e97f64b1c86523f85762aedc72698.tar
nixlib-373c14614b5e97f64b1c86523f85762aedc72698.tar.gz
nixlib-373c14614b5e97f64b1c86523f85762aedc72698.tar.bz2
nixlib-373c14614b5e97f64b1c86523f85762aedc72698.tar.lz
nixlib-373c14614b5e97f64b1c86523f85762aedc72698.tar.xz
nixlib-373c14614b5e97f64b1c86523f85762aedc72698.tar.zst
nixlib-373c14614b5e97f64b1c86523f85762aedc72698.zip
Put the NixOS channel in an option
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/shell.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/shell.nix b/nixos/modules/programs/shell.nix
index 679c4979dfa9..8052502c21ea 100644
--- a/nixos/modules/programs/shell.nix
+++ b/nixos/modules/programs/shell.nix
@@ -39,7 +39,7 @@ in
 
         # Subscribe the root user to the NixOS channel by default.
         if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
-            echo "http://nixos.org/channels/nixos-unstable nixos" > $HOME/.nix-channels
+            echo "${config.system.defaultChannel} nixos" > $HOME/.nix-channels
         fi
 
         # Create the per-user garbage collector roots directory.