feat: enable garbage collection & store optimisation

This commit is contained in:
Ivan R. 2024-02-29 21:45:20 +05:00
parent c56cdcbf6f
commit 0a94178be7
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C

View file

@ -31,8 +31,20 @@
./programs/yggdrasil.nix
];
# Enable flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix = {
# Enable flakes
settings.experimental-features = [ "nix-command" "flakes" ];
# Garbage collection
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
optimise = {
automatic = true;
dates = [ "03:00" ];
};
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;