add automatic nix store garbage collection
This commit is contained in:
parent
250563445b
commit
32f04d5e47
1 changed files with 10 additions and 1 deletions
|
|
@ -5,7 +5,16 @@ in
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.${feature}.enable {
|
config = lib.mkIf config.${feature}.enable {
|
||||||
nix = {
|
nix = {
|
||||||
optimise.automatic = true;
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 20d";
|
||||||
|
persistent = true;
|
||||||
|
};
|
||||||
|
optimise = {
|
||||||
|
automatic = true;
|
||||||
|
persistent = true;
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue