diff --git a/nixos/zsh.nix b/nixos/zsh.nix index 9aa38ad..349d202 100755 --- a/nixos/zsh.nix +++ b/nixos/zsh.nix @@ -39,7 +39,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 --git-dir=/etc/nixos 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 -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; c = "clear"; # alias sudo to itself so user aliases can be sudoed