Remove sudo

This commit is contained in:
Charlotte Van Petegem 2021-01-27 16:57:07 +01:00
parent ef572c20bc
commit ad71bb0318
No known key found for this signature in database
GPG key ID: 019E764B7184435A
5 changed files with 27 additions and 6 deletions

View file

@ -15,7 +15,7 @@ nix flake update --recreate-lock-file
if [ -z "${OVERRIDE:-}" ]
then
sudo nixos-rebuild --flake . switch
su -c "nixos-rebuild --flake . switch"
else
sudo nixos-rebuild --flake . --override-input nixpkgs ../nixpkgs --no-write-lock-file switch
su -c "nixos-rebuild --flake . --override-input nixpkgs ../nixpkgs --no-write-lock-file switch"
fi