From 8fbd60b4f70d02ecf8a842b76340f0c6f7b16b98 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Thu, 30 Oct 2025 14:53:42 +0100 Subject: [PATCH] default `nix.gc.automatic` to `true` Signed-off-by: Kiara Grouwstra --- infra/common/nixos/default.nix | 1 + machines/dev/forgejo-ci/forgejo-actions-runner.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/infra/common/nixos/default.nix b/infra/common/nixos/default.nix index 71b08426..35249248 100644 --- a/infra/common/nixos/default.nix +++ b/infra/common/nixos/default.nix @@ -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 diff --git a/machines/dev/forgejo-ci/forgejo-actions-runner.nix b/machines/dev/forgejo-ci/forgejo-actions-runner.nix index bb6928cc..99eb7aac 100644 --- a/machines/dev/forgejo-ci/forgejo-actions-runner.nix +++ b/machines/dev/forgejo-ci/forgejo-actions-runner.nix @@ -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; }