all repos — nixfiles @ 5a3de041222846e71d33a6c3ec227b75a646bd9d

System and user configuration, managed by nix and home-manager

nixos: add aliases for sudo + nixos-* commands
Alan Pearce alan@alanpearce.eu
Wed, 09 Oct 2019 22:34:06 +0200
commit

5a3de041222846e71d33a6c3ec227b75a646bd9d

parent

33f9a9353bfa76fd9eb551851ddfdaaa3371c765

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M user/settings/nixos.nixuser/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";
   };
 }