diff --git a/systems/x86_64-linux/mx/default.nix b/systems/x86_64-linux/mx/default.nix index 8adc226..9d68b5f 100644 --- a/systems/x86_64-linux/mx/default.nix +++ b/systems/x86_64-linux/mx/default.nix @@ -37,10 +37,18 @@ dates = "04:00"; operation = "switch"; allowReboot = true; -# flake = lib.mkForce "git+file:///var/lib/gitea/repositories/harald/nixcfg.git#mx"; + # flake = lib.mkForce "git+file:///var/lib/gitea/repositories/harald/nixcfg.git#mx"; flake = lib.mkForce "/root/nixcfg/.#mx"; }; + systemd.services.nixos-upgrade = { + preStart = '' + cd /root + git fetch origin + git reset --hard origin/HEAD + ''; + }; + nix.gc = { dates = "daily"; options = "--delete-older-than 7d";