mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 16:11:54 -05:00
38 lines
899 B
Nix
38 lines
899 B
Nix
|
{
|
||
|
nix = {
|
||
|
gc = {
|
||
|
automatic = true;
|
||
|
dates = "daily";
|
||
|
options = "--delete-older-than 3d";
|
||
|
persistent = true;
|
||
|
randomizedDelaySec = "60min";
|
||
|
};
|
||
|
|
||
|
# Run GC when there is less than 100MiB left.
|
||
|
extraOptions = ''
|
||
|
min-free = ${toString (100 * 1024 * 1024)}
|
||
|
max-free = ${toString (1024 * 1024 * 1024)}
|
||
|
'';
|
||
|
|
||
|
optimise.automatic = true;
|
||
|
|
||
|
settings = {
|
||
|
auto-optimise-store = false;
|
||
|
experimental-features = ["nix-command" "flakes"];
|
||
|
|
||
|
substituters = [
|
||
|
"https://alyraffauf.cachix.org"
|
||
|
"https://cache.nixos.org/"
|
||
|
"https://nix-community.cachix.org"
|
||
|
];
|
||
|
|
||
|
trusted-public-keys = [
|
||
|
"alyraffauf.cachix.org-1:GQVrRGfjTtkPGS8M6y7Ik0z4zLt77O0N25ynv2gWzDM="
|
||
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||
|
];
|
||
|
|
||
|
trusted-users = ["aly"];
|
||
|
};
|
||
|
};
|
||
|
}
|