1 Commits

Author SHA1 Message Date
98a79d708a [durruti] fix wiping of hosts /nix/store
the automatic garbage collection of durruti - which runs inside a
nixos-container - complelty wiped the hosts nix store making basically
all the services fail and the machine unbootable.
2024-10-25 12:47:27 +02:00

View File

@@ -100,11 +100,12 @@ in
nix = { nix = {
# Show a diff when activating a new system except for microvms which handle this seperately # Show a diff when activating a new system except for microvms which handle this seperately
#diffSystem = config.malobeo.deployment.server or "" == ""; #diffSystem = config.malobeo.deployment.server or "" == "";
gc = lib.mkIf config.malobeo.autoUpdate.enable { #TODO: THIS WIPES HOSTS NIX STORE FROM WITHIN NIXOS-CONTAINER
automatic = true; #gc = lib.mkIf config.malobeo.autoUpdate.enable {
randomizedDelaySec = "6h"; # automatic = true;
options = "--delete-older-than 21d"; # randomizedDelaySec = "6h";
}; # options = "--delete-older-than 21d";
#};
}; };
environment.systemPackages = [ ( environment.systemPackages = [ (