diff --git a/nixos/zsh.nix b/nixos/zsh.nix index aa4f7b2..e26b40c 100755 --- a/nixos/zsh.nix +++ b/nixos/zsh.nix @@ -38,7 +38,7 @@ ls = "eza --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"; # alias sudo to itself so user aliases can be sudoed