Files
nixos-servers/system/nix.nix
Torjus Håkestad 64f2688349
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m27s
nix: configure gc to delete generations older than 14d
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 02:21:19 +01:00

32 lines
807 B
Nix

{ lib, ... }:
{
nix = {
gc = {
automatic = true;
options = "--delete-older-than 14d";
};
optimise = {
automatic = true;
};
settings = {
trusted-substituters = [
"https://nix-cache.home.2rjus.net"
"https://cache.nixos.org"
"https://cuda-maintainers.cachix.org"
];
substituters = lib.mkOverride 90 [
"https://nix-cache.home.2rjus.net"
"https://cache.nixos.org"
"https://cuda-maintainers.cachix.org"
];
trusted-public-keys = [
"nix-cache.home.2rjus.net-1:2kowZOG6pvhoK4AHVO3alBlvcghH20wchzoR0V86UWI="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
];
};
};
}