fix running upd from outside of /etc/nixos

This commit is contained in:
Seaswimmer 2024-11-16 19:15:27 -05:00
parent 23b0daf2f3
commit 29c7a39ed0
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -38,7 +38,7 @@
ls = "eza --icons"; ls = "eza --icons";
l = "eza -lhg --icons"; l = "eza -lhg --icons";
upd = "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; upd = "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git --git-dir=/etc/nixos add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch";
c = "clear"; c = "clear";
# alias sudo to itself so user aliases can be sudoed # alias sudo to itself so user aliases can be sudoed