Adjust update alias to do a flake update before rebuild upgrade
This commit is contained in:
parent
78171e484a
commit
aab13ebe26
2 changed files with 7 additions and 1 deletions
|
|
@ -21,5 +21,11 @@
|
|||
dig
|
||||
traceroute
|
||||
];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
shellAliases = {
|
||||
ll = "ls -la";
|
||||
update = "sudo nixos-rebuild switch --upgrade-all --flake $NIX_FLAKE_PATH#${vars.hostName}";
|
||||
update = "nix flake update $NIX_FLAE_PATH#${vars.hostName} && sudo nixos-rebuild switch --upgrade-all --flake $NIX_FLAKE_PATH#${vars.hostName}";
|
||||
rebuild = "sudo nixos-rebuild switch --flake $NIX_FLAKE_PATH#${vars.hostName}";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue