feat: add nix store optimization and gc options

This commit is contained in:
Youwen Wu 2024-09-17 02:15:08 -07:00
parent 5ab18f41ca
commit 10e0484f16
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -28,5 +28,16 @@
"nix-command"
"flakes"
];
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# Free up to 1GiB when there is less than 100MiB left
extraOptions = ''
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
}