Update flake-rebuild for hostname

This commit is contained in:
Jeffrey Serio 2023-06-15 17:46:00 -05:00
parent 5695ce8134
commit d9327d5764

View File

@ -2,7 +2,7 @@
function flake-rebuild() { function flake-rebuild() {
sudo git -C /etc/nixos commit -asm "$1" ; sudo git -C /etc/nixos commit -asm "$1" ;
sudo nix flake update --commit-lock-file "git+file:///etc/nixos" --extra-experimental-features nix-command --extra-experimental-features flakes ; sudo nix flake update --commit-lock-file "git+file:///etc/nixos" --extra-experimental-features nix-command --extra-experimental-features flakes ;
sudo nixos-rebuild --flake /etc/nixos/#moonshadow switch sudo nixos-rebuild --flake /etc/nixos/#$(hostname) switch
} }
# Create a bookmark. # Create a bookmark.