nix/nixos/common/modules/nixos.nix

17 lines
350 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;
dates = "daily";
};
# Garbage collection -- Keep the system clean
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
2024-02-21 03:00:07 +01:00
}