2023-08-23 07:30:15 +02:00
|
|
|
{ ... }: {
|
2023-07-12 13:52:15 +02:00
|
|
|
# Enable flakes: https://nixos.wiki/wiki/Flakes
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
2024-02-21 03:00:07 +01:00
|
|
|
nix.optimise = {
|
|
|
|
automatic = true;
|
2024-02-23 05:21:27 +01:00
|
|
|
dates = ["daily"];
|
2024-02-21 03:00:07 +01:00
|
|
|
};
|
|
|
|
|
2023-07-12 13:52:15 +02:00
|
|
|
# Garbage collection -- Keep the system clean
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
2024-04-17 04:21:57 +02:00
|
|
|
options = "--delete-older-than 30d";
|
2023-07-12 13:52:15 +02:00
|
|
|
};
|
2024-02-21 03:00:07 +01:00
|
|
|
}
|