Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Update nix-compile-after-setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkmmr69420 committed May 19, 2023
1 parent aabcfcf commit 115b640
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions other-scripts/nix-compile-after-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ sudo rm -f /etc/systemd/system/nix-daemon.socket
sudo cp /opt/nixusr/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service
sudo cp /opt/nixusr/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket

sudo echo "linking configurations..."
sudo echo "Configuring nix..."
sudo ln -s /etc/nix /opt/nixusr/etc/nix
sudo tee /etc/profile.d/nix.sh <<EOF
if [ -e '/opt/nixusr/etc/profile.d/nix-daemon.sh' ]; then
. '/opt/nixusr/etc/profile.d/nix-daemon.sh'
fi
EOF

sudo echo "Copying configurations..."

0 comments on commit 115b640

Please sign in to comment.