From 04b3c07941997357efcf428c91b5c90fc7fa5b83 Mon Sep 17 00:00:00 2001 From: electria Date: Wed, 2 Sep 2026 11:03:00 -0700 Subject: [PATCH] shell: partially revert "add nh over nixos-rebuild alias" This reverts commit a984633ee3f503a0b0deb634d0d302fcdf2a2d51. I actually prefer lix's multiline-with-logs output over nom, so nh is not much better to use over nixos-rebuild-ng I am still keeping around nh though, for eg `nh search` --- defaults/shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/defaults/shell.nix b/defaults/shell.nix index 9172155..53e770e 100644 --- a/defaults/shell.nix +++ b/defaults/shell.nix @@ -52,6 +52,8 @@ in environment.shellAliases = { # make nix-shell preserve the user's $SHELL nix-shell = /* sh */ ''nix-shell --command "export SHELL=$SHELL; $SHELL"''; + + nixos-rebuild = /* sh */ "nixos-rebuild --ask-sudo-password"; }; environment.systemPackages = lib.mkIf config.nixowos.allowAddingPackages cfg.extraPackages;