flake-config/modules/os.nix

28 lines
781 B
Nix

{
# configure nix stuff
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" "pipe-operators" ];
auto-optimise-store = true;
trusted-users = [ "@wheel" ];
};
gc = {
dates = "weekly";
automatic = true;
randomizedDelaySec = "45min";
options = "--delete-older-than 30d";
};
};
# Make sure the system is at least semi up to date
system.autoUpgrade = {
enable = true;
dates = "weekly";
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "25.05"; # Did you read the comment?
}