nixos: add aliases for sudo + nixos-* commands
Alan Pearce alan@alanpearce.eu
Wed, 09 Oct 2019 22:34:06 +0200
1 files changed, 4 insertions(+), 0 deletions(-)
jump to
M user/settings/nixos.nix → user/settings/nixos.nix
@@ -14,8 +14,12 @@ ]; programs.zsh.shellAliases = { nor = "nixos-rebuild"; + snor = "sudo nixos-rebuild"; nors = "nixos-rebuild switch"; + snors = "sudo nixos-rebuild switch"; norb = "nixos-rebuild boot"; + snorb = "sudo nixos-rebuild boot"; norr = "nixos-rebuild switch --rollback"; + snorr = "sudo nixos-rebuild switch --rollback"; }; }