summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-10-09 22:34:06 +0200
committerAlan Pearce2019-10-09 22:34:06 +0200
commit5a3de041222846e71d33a6c3ec227b75a646bd9d (patch)
tree95704f6c60c771b3e84dd1f074bf4b3ece259966 /user
parent33f9a9353bfa76fd9eb551851ddfdaaa3371c765 (diff)
downloadnixfiles-5a3de041222846e71d33a6c3ec227b75a646bd9d.tar.lz
nixfiles-5a3de041222846e71d33a6c3ec227b75a646bd9d.tar.zst
nixfiles-5a3de041222846e71d33a6c3ec227b75a646bd9d.zip
nixos: add aliases for sudo + nixos-* commands
Diffstat (limited to 'user')
-rw-r--r--user/settings/nixos.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/settings/nixos.nix b/user/settings/nixos.nix
index 64b523b8..cf098b21 100644
--- a/user/settings/nixos.nix
+++ b/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";
   };
 }