1
Fork 0
nixos-system-config/systems/common.nix
2023-07-19 22:25:34 +02:00

20 lines
417 B
Nix

# Common configuration for all systems
{ pkgs, ... }:
{
nix = {
settings.auto-optimise-store = true;
# Clean generations older than a week
gc = {
automatic = false; # Flip this to do it automatically
dates = "weekly";
options = "--delete-older-than 7d";
};
};
nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.05";
}