mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Only use sudo for the activation part of nixos-rebuild
This commit is contained in:
parent
ac71470c92
commit
ff77b68230
1 changed files with 2 additions and 2 deletions
|
|
@ -43,12 +43,12 @@ in {
|
||||||
|
|
||||||
(lib.mkIf cfg.nixAliases.enable {
|
(lib.mkIf cfg.nixAliases.enable {
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
nr = "sudo nixos-rebuild --flake $FLAKE";
|
nr = "nixos-rebuild --flake $FLAKE --use-remote-sudo";
|
||||||
nrs = "nr switch";
|
nrs = "nr switch";
|
||||||
nrt = "nr test";
|
nrt = "nr test";
|
||||||
nrb = "nr boot";
|
nrb = "nr boot";
|
||||||
nrrb = "nrb && reboot";
|
nrrb = "nrb && reboot";
|
||||||
nu = "sudo nix flake update";
|
nu = "nix flake update";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue