Update scripts to prevent potential network issues

This commit is contained in:
2022-01-26 03:18:48 +00:00
parent 6c3d2c2d4b
commit e182f7ed9c
2 changed files with 4 additions and 4 deletions

View File

@@ -6,8 +6,8 @@ fi
pushd ~/.dotfiles pushd ~/.dotfiles
nix flake update nix flake update
sudo nixos-rebuild switch --flake .#
hn=$(hostname) hn=$(hostname)
home-manager switch --flake .#daniel-$hn home-manager switch --flake .#daniel-$hn
sudo nixos-rebuild switch --flake .#
popd popd

View File

@@ -4,8 +4,8 @@ if [ "$UID" -ne 0 ]; then
sudo true # Prompt user for password so it doesn't happen in the middle of the script sudo true # Prompt user for password so it doesn't happen in the middle of the script
fi fi
pushd ~/.dotfiles pushd ~/.dotfiles
sudo nixos-rebuild switch --flake .#
hn=$(hostname) hn=$(hostname)
home-manager switch --flake .#daniel-$hn home-manager switch --flake .#daniel-$hn
sudo nixos-rebuild switch --flake .#
popd popd