added space optimization stuff
This commit is contained in:
@@ -43,4 +43,13 @@
|
|||||||
"30 2 * * * /run/current-system/sw/bin/nfs > /etc/nixos/auto_update.log 2>&1"
|
"30 2 * * * /run/current-system/sw/bin/nfs > /etc/nixos/auto_update.log 2>&1"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://nixos.wiki/wiki/Storage_optimization
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 30d";
|
||||||
|
};
|
||||||
|
nix.optimise.automatic = true;
|
||||||
|
nix.optimise.dates = [ "Mon *-*-* 05:00:00" ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user