diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-29 12:51:04 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-29 12:51:04 -0500 |
commit | c2fcd44b6a64ec7fd44f364a64396f680babbf8d (patch) | |
tree | b7d0b5902d682985392991ae430ef9fef2431e03 /hooks/pre-up/2-nix | |
parent | 3b42452a37117bace208a2085980e7c1b79b3738 (diff) | |
download | rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.gz rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.bz2 rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.zip |
Updates
Diffstat (limited to 'hooks/pre-up/2-nix')
-rwxr-xr-x | hooks/pre-up/2-nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix index 0a457ee..0cb74ba 100755 --- a/hooks/pre-up/2-nix +++ b/hooks/pre-up/2-nix @@ -2,8 +2,8 @@ if ! [ -x "$(command -v nix)" ]; then echo "Installing Nix" - sudo install -d -m755 -o $(id -u) -g $(id -g) /nix + doas install -d -m755 -o $(id -u) -g $(id -g) /nix curl -L https://nixos.org/nix/install | sh - nix profile install nixpkgs#nix-direnv + echo "Nix has been installed, you should run nix profile install nixpkgs#nix-direnv once profile has been refreshed" fi |