default nix.gc.automatic to true (#563)

automates future gc invocations to prevent errors as the `No space left on device` from https://git.fediversity.eu/fediversity/fediversity/actions/runs/1557

Reviewed-on: fediversity/fediversity#563
This commit is contained in:
Kiara Grouwstra 2025-10-31 13:43:50 +01:00
parent faf5e8a7ae
commit f8668a5438
2 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,7 @@ in
i18n.defaultLocale = "en_US.UTF-8";
system.stateVersion = "24.05"; # do not change
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
nix.gc.automatic = mkDefault true;
## This is just nice to have, but it is also particularly important for the
## Forgejo CI runners because the Nix configuration in the actions is directly

View file

@ -44,4 +44,7 @@
## For the Docker mode of the runner.
virtualisation.docker.enable = true;
# we should probably prevent CI from trashing CI builds
nix.gc.automatic = false;
}