nix/nixos/common/modules/nixos.nix

16 lines
350 B
Nix

{ ... }: {
# Enable flakes: https://nixos.wiki/wiki/Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.optimise = {
automatic = true;
dates = "daily";
};
# Garbage collection -- Keep the system clean
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
}