nix config to save some space

This commit is contained in:
Dennis Frieberg 2024-10-13 13:45:11 +02:00
parent e7154785dd
commit ec46a28278
Signed by untrusted user: nerf
GPG key ID: 7C58AFED036072C5
4 changed files with 36 additions and 19 deletions

22
nixos/roles/nix.nix Normal file
View file

@ -0,0 +1,22 @@
{
nix = {
settings = {
# trusted-public-keys belonging to specific persons are set in rolse/admins.nix
trusted-public-keys = [];
experimental-features = [
"flakes"
"nix-command"
];
auto-optimise-store = true;
fallback = true;
builders-use-substitutes = true;
};
gc = {
automatic = true;
persistent = false;
dates = "weekly";
options = "-d";
randomizedDelaySec = "5h";
};
};
}