Put the NixOS channel in an option

This commit is contained in:
Eelco Dolstra
2013-10-24 15:09:00 +02:00
parent 8c65a2a181
commit 373c14614b
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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.