nix/nixos/common/modules/nixos.nix

21 lines
490 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" ];
# Keep the system up-to-date automatically
system = {
autoUpgrade = {
enable = true;
allowReboot = false;
dates = "daily";
2023-09-19 14:30:11 +02:00
flake = "git+file:/etc/nixos/flake.nix";
};
};
# Garbage collection -- Keep the system clean
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
}