summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-04-29 20:10:36 +0200
committerAlan Pearce2024-04-29 20:10:36 +0200
commit21398bece441d9afaa8e74539d993c3e976ebce0 (patch)
tree66aa0a1e006a3b57371eaf6be05cc31ebbd9d473 /user
parent7a3f06fe4aa3a61b9d86b6aebdb404eba95d9eb5 (diff)
downloadnixfiles-21398bece441d9afaa8e74539d993c3e976ebce0.tar.lz
nixfiles-21398bece441d9afaa8e74539d993c3e976ebce0.tar.zst
nixfiles-21398bece441d9afaa8e74539d993c3e976ebce0.zip
use `nh` as a nixos-rebuild wrapper with nice output
Diffstat (limited to 'user')
-rw-r--r--user/settings/fish.nix2
-rw-r--r--user/settings/nixos.nix8
2 files changed, 5 insertions, 5 deletions
diff --git a/user/settings/fish.nix b/user/settings/fish.nix
index 7e144e05..0101178c 100644
--- a/user/settings/fish.nix
+++ b/user/settings/fish.nix
@@ -25,7 +25,7 @@
       ];
     # TODO: pre-generate nix-your-shell
     interactiveShellInit = ''
-      ${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
+      ${pkgs.nix-your-shell}/bin/nix-your-shell --nom env fish | source
       bind \es __ghq_repository_search
       # don't bind ctrl-t, it does nice things on macOS/BSD
       set FZF_CTRL_T_COMMAND
diff --git a/user/settings/nixos.nix b/user/settings/nixos.nix
index bae37c56..d30d6a3d 100644
--- a/user/settings/nixos.nix
+++ b/user/settings/nixos.nix
@@ -5,9 +5,9 @@
   ];
 
   home.shellAliases = {
-    srb = "sudo nixos-rebuild";
-    rbs = "sudo nixos-rebuild switch --fast";
-    rbb = "sudo nixos-rebuild boot";
-    rbr = "sudo nixos-rebuild switch --rollback";
+    srb = "nh os";
+    rbs = "nh os switch --fast";
+    rbb = "nh os boot";
+    rbr = "nh os switch --rollback";
   };
 }