feat: refactor the modules/servers directory.
This commit is contained in:
parent
4e783c052b
commit
8b754d3a7e
69 changed files with 61 additions and 62 deletions
19
modules/servers/common/optimise-storage.nix
Normal file
19
modules/servers/common/optimise-storage.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{...}: {
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
|
||||
nix.extraOptions = ''
|
||||
min-free = ${toString (100 * 1024 * 1024)}
|
||||
max-free = ${toString (1024 * 1024 * 1024)}
|
||||
'';
|
||||
|
||||
boot.loader.grub.configurationLimit = 3;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue