aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-09 18:30:31 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-09 23:35:01 +0200
commit26762ceb8629af95300c0cc8c372a99282060dc1 (patch)
tree7d1f50011206570ab4a1e5820533d19ff91ac24c
parentc43d9f6131102f2761f22b1ec26f345d357f169c (diff)
nix-profile.sh: Don't create .nix-channels
This is already done by the installer, so no need to do it again.
-rw-r--r--scripts/nix-profile-daemon.sh.in5
-rw-r--r--scripts/nix-profile.sh.in5
-rw-r--r--tests/nix-profile.sh1
3 files changed, 0 insertions, 11 deletions
diff --git a/scripts/nix-profile-daemon.sh.in b/scripts/nix-profile-daemon.sh.in
index 3e138ac42..2133a6d3b 100644
--- a/scripts/nix-profile-daemon.sh.in
+++ b/scripts/nix-profile-daemon.sh.in
@@ -15,11 +15,6 @@ if test -w $HOME; then
fi
fi
- # Subscribe the root user to the NixOS channel by default.
- if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
- echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels
- fi
-
# Set up a default Nix expression from which to install stuff.
if [ ! -e $HOME/.nix-defexpr -o -L $HOME/.nix-defexpr ]; then
rm -f $HOME/.nix-defexpr
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in
index 7f9b5877a..8e70c68b2 100644
--- a/scripts/nix-profile.sh.in
+++ b/scripts/nix-profile.sh.in
@@ -22,11 +22,6 @@ if [ -n "$HOME" ] && [ -n "$USER" ]; then
fi
fi
- # Subscribe the user to the unstable Nixpkgs channel by default.
- if [ ! -e "$HOME/.nix-channels" ]; then
- echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > "$HOME/.nix-channels"
- fi
-
# Set up a default Nix expression from which to install stuff.
__nix_defexpr="$HOME"/.nix-defexpr
[ -L "$__nix_defexpr" ] && rm -f "$__nix_defexpr"
diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh
index 5b17fe3fa..b808cf1b4 100644
--- a/tests/nix-profile.sh
+++ b/tests/nix-profile.sh
@@ -9,4 +9,3 @@ USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set"
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency
[ -L $TEST_HOME/.nix-profile ]
-[ -e $TEST_HOME/.nix-channels ]