Author: eelco
Date: Sun Apr 22 22:43:57 2012
New Revision: 33883
URL: https://nixos.org/websvn/nix/?rev=33883&sc=1
Log:
* Subscribe the root user to the NixOS channel by default.
Modified:
nixos/trunk/modules/programs/bash/profile.sh
Modified: nixos/trunk/modules/programs/bash/profile.sh
==============================================================================
--- nixos/trunk/modules/programs/bash/profile.sh Sun Apr 22 20:39:43
2012 (r33882)
+++ nixos/trunk/modules/programs/bash/profile.sh Sun Apr 22 22:43:57
2012 (r33883)
@@ -85,6 +85,11 @@
fi
fi
+# Subscribe the root user to the NixOS channel by default.
+if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
+ echo "http://nixos.org/releases/nixos/channels/nixos-unstable nixos" >
$HOME/.nix-channels
+fi
+
# Create the per-user garbage collector roots directory.
NIX_USER_GCROOTS_DIR=/nix/var/nix/gcroots/per-user/$USER
mkdir -m 0755 -p $NIX_USER_GCROOTS_DIR
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits