1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

installer: remove profile step

This commit is contained in:
Daiderd Jordan 2020-12-19 12:38:06 +01:00 committed by Daiderd Jordan
parent 3cf11923eb
commit 6dd655466d
No known key found for this signature in database
GPG key ID: 373D8D8DF3FDA129
2 changed files with 0 additions and 26 deletions

View file

@ -49,17 +49,6 @@ with lib;
esac
fi
if ! test -L /etc/profile && grep -q 'etc/profile.d/nix-daemon.sh' /etc/profile; then
if test -t 1; then
read -p "Would you like to remove nix-daemon.sh configuration in /etc/profile? [y/n] " i
fi
case "$i" in
y|Y)
sudo patch -d /etc -p1 < '${./profile.patch}'
;;
esac
fi
if ! test -L /run; then
if test -t 1; then
read -p "Would you like to create /run? [y/n] " i

View file

@ -1,15 +0,0 @@
diff --git a/profile b/profile
index 3748e3b..36ad2cd 100644
--- a/profile
+++ b/profile
@@ -7,10 +7,3 @@
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
-
-# Nix
-if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
- . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
-fi
-# End Nix
-