Files
FxNet/nix.nix

42 lines
1.1 KiB
Nix

{ lib, ... }:
{
nix = {
gc = with lib; {
automatic = mkDefault true;
dates = mkDefault "19:00";
persistent = mkDefault true;
options = mkDefault "--delete-older-than 14d";
};
settings = with lib; {
substituters = lib.mkForce [
"https://nixos-cache-proxy.cofob.dev"
"https://nix-community.cachix.org"
"https://devenv.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
accept-flake-config = true;
auto-optimise-store = mkDefault true;
experimental-features = [
"nix-command"
"flakes"
];
download-buffer-size = 524288000;
log-lines = 30;
min-free = mkDefault "${toString (5 * 1024 * 1024 * 1024)}";
max-free = mkDefault "${toString (10 * 1024 * 1024 * 1024)}";
max-jobs = mkDefault 10;
trusted-users = [
"root"
"@wheel"
];
warn-dirty = true;
sandbox-dev-shm-size = "70%";
};
};
}