Improve apollo maintainance job
This commit is contained in:
parent
29136f8e82
commit
2fde0b7d16
|
@ -31,9 +31,10 @@ m-0.mail = {
|
|||
home.packages = [
|
||||
(pkgs.writeShellScriptBin "maintenance" ''
|
||||
sudo -A nix-channel --update
|
||||
sudo -A nixos-rebuild switch
|
||||
sudo -A nix-collect-garbage -d
|
||||
nix optimise-store
|
||||
sleep 5s
|
||||
sudo -A systemctl start nixos-upgrade
|
||||
sudo -A systemctl start nix-gc
|
||||
sudo -A systemctl start nix-optimise
|
||||
sudo -A systemctl start borgbackup-job-data.service
|
||||
'')
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue