Initial commit
This commit is contained in:
40
nix.nix
Normal file
40
nix.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ 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"
|
||||
];
|
||||
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%";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user