add nh over nixos-rebuild alias

This commit is contained in:
electria 2026-07-07 12:50:45 -07:00
commit a984633ee3
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -28,6 +28,8 @@ in
compsize compsize
ffmpeg ffmpeg
nh
] ]
++ ( ++ (
if config.nixowos.nvidia.enable then if config.nixowos.nvidia.enable then
@ -51,8 +53,6 @@ in
environment.shellAliases = { environment.shellAliases = {
# make nix-shell preserve the user's $SHELL # make nix-shell preserve the user's $SHELL
nix-shell = /* sh */ ''nix-shell --command "export SHELL=$SHELL; $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; environment.systemPackages = lib.mkIf config.nixowos.allowAddingPackages cfg.extraPackages;