1
0
Fork 0

Improve apollo maintainance job

This commit is contained in:
Malte Brandy 2018-07-19 19:40:09 +02:00
parent 29136f8e82
commit 2fde0b7d16
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -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
'')
];