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;