mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 07:31:54 -05:00
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.base.enable {
|
|
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://nixcache.raffauflabs.com"
|
|
"https://hyprland.cachix.org"
|
|
"https://cache.nixos.org/"
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
"nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8="
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
];
|
|
|
|
trusted-users = ["aly"];
|
|
};
|
|
};
|
|
};
|
|
}
|