From 29c7a39ed03c530cf55813344a4767f8256a4a2c Mon Sep 17 00:00:00 2001 From: cswimr Date: Sat, 16 Nov 2024 19:15:27 -0500 Subject: [PATCH] fix running `upd` from outside of `/etc/nixos` --- nixos/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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