nix/nixos/common/modules/nixos.nix

17 lines
353 B
Nix
Raw Normal View History

2023-08-23 07:30: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
};
# 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";
};
2024-02-21 03:00:07 +01:00
}