diff --git a/scripts/lib/nix.fish b/scripts/lib/nix.fish index 28e18ff0..d4141acb 100644 --- a/scripts/lib/nix.fish +++ b/scripts/lib/nix.fish @@ -18,12 +18,12 @@ begin if [ ! -d "$nixPkgsCache" ] downloadNixPkgs - mkdir -p "$nixPkgsDir" - cp -r "$nixPkgsCache"/* "$nixPkgsDir" + sudo mkdir -p "$nixPkgsDir" + sudo cp -r "$nixPkgsCache"/* "$nixPkgsDir" end end function uninstallNixPkgs -V nixPkgsDir - rm -rf (dirname "$nixPkgsDir") + sudo rm -rf (dirname "$nixPkgsDir") end end