Update dependencies

This commit is contained in:
Charlotte Van Petegem 2021-04-16 10:45:04 +02:00
parent 3212896eea
commit bfc1702f36
No known key found for this signature in database
GPG key ID: 019E764B7184435A
4 changed files with 12 additions and 17 deletions

View file

@ -6,9 +6,7 @@ nix flake update
if [ -z "${OVERRIDE:-}" ]
then
nix build --no-link --profile /nix/var/nix/profiles/per-user/charlotte/`hostname` .#nixosConfigurations.`hostname`.config.system.build.toplevel
su -c "nixos-rebuild --flake . switch"
su -c "nixos-rebuild --flake . --build-host root@urithiru switch"
else
nix build --no-link --override-input nixpkgs ../nixpkgs --no-write-lock-file --profile /nix/var/nix/profiles/per-user/charlotte/`hostname` .#nixosConfigurations.`hostname`.config.system.build.toplevel
su -c "nixos-rebuild --flake . --override-input nixpkgs ../nixpkgs --no-write-lock-file switch"
su -c "nixos-rebuild --flake . --build-host root@urithiru --override-input nixpkgs ../nixpkgs --no-write-lock-file switch"
fi