aboutsummaryrefslogtreecommitdiff
path: root/nix.install
diff options
context:
space:
mode:
Diffstat (limited to 'nix.install')
-rw-r--r--nix.install36
1 files changed, 21 insertions, 15 deletions
diff --git a/nix.install b/nix.install
index e9adc0c..613cee6 100644
--- a/nix.install
+++ b/nix.install
@@ -49,27 +49,33 @@ restore_store() {
49 chown root.root /nix/store 49 chown root.root /nix/store
50} 50}
51 51
52init_channels() {
53 # Initialize default nix channel
54 echo "Initializing default nix channel"
55 source /etc/profile.d/nix.sh
56 nix-channel --update
57}
58
52daemon_info() { 59daemon_info() {
53 if [ ! -d /nix/var/nix/profiles/per-user/root ]; then 60 echo "To start the nix daemon, execute one of the following:"
54 echo "To start the nix daemon, execute one of the following:" 61 echo
55 echo 62 echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot"
56 echo " systemctl enable nix-daemon.socket # Sets the daemon to start on next boot" 63 echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too"
57 echo " systemctl enable --now nix-daemon.socket # Starts now and on next boot too" 64 echo
58 echo 65 echo "Also, if this is a new install, you need to start a new login shell or otherwise"
59 echo "Also, if this is a new install, you need to start a new login shell or otherwise" 66 echo
60 echo 67 echo " source /etc/profile.d/nix.sh"
61 echo " source /etc/profile.d/nix.sh" 68 echo " source /etc/profile.d/nix-daemon.sh"
62 echo " source /etc/profile.d/nix-daemon.sh" 69 echo
63 echo 70 echo "Once your environment is set-up, you will need to add some channels. You can see how"
64 echo "Once your environment is set-up, you will need to add some channels. You can see how" 71 echo "to do that here:"
65 echo "to do that here:" 72 echo " https://nixos.org/nix/manual/#sec-channels"
66 echo " https://nixos.org/nix/manual/#sec-channels"
67 fi
68} 73}
69 74
70post_install() { 75post_install() {
71 create_users 76 create_users
72 create_store 77 create_store
78 init_channels
73 daemon_info 79 daemon_info
74} 80}
75 81