From 04b3c07941997357efcf428c91b5c90fc7fa5b83 Mon Sep 17 00:00:00 2001 From: electria Date: Wed, 2 Sep 2026 11:03:00 -0700 Subject: [PATCH 1/2] 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; From 652550ab41352f214aac4dffdd448c40313cf8e5 Mon Sep 17 00:00:00 2001 From: electria Date: Wed, 2 Sep 2026 11:06:58 -0700 Subject: [PATCH 2/2] system: don't enable sudo-rs it's somewhat pointless, especially with run0 being more useful (and it's already there by default) this setting also seems to ignore `nixowos.allowAddingPackages` --- defaults/system.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/defaults/system.nix b/defaults/system.nix index 836c99c..464c760 100644 --- a/defaults/system.nix +++ b/defaults/system.nix @@ -69,8 +69,6 @@ in memoryPercent = 100; }; - security.sudo-rs.enable = lib.mkDefault true; - services.openssh = { enable = lib.mkDefault true;