mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: add NixOS auto-GC and -store optimisation
This commit is contained in:
parent
88f64a3139
commit
af3224a1d5
2 changed files with 39 additions and 0 deletions
|
|
@ -32,6 +32,18 @@ stylix.targets.grub.enable = false; # the styling makes grub more ugly
|
|||
|
||||
security.polkit.enable = true;
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
randomizedDelaySec = "14m";
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = [ "weekly" ];
|
||||
};
|
||||
|
||||
# systemd
|
||||
systemd.extraConfig = ''
|
||||
DefaultTimeoutStartSec=60s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue