2023-08-23 07:30:15 +02:00
|
|
|
{ ... }: {
|
2023-07-12 13:52: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;
|
2023-08-21 06:21:01 +02:00
|
|
|
dates = "daily";
|
|
|
|
flake = "path:/etc/nixos/flake.nix";
|
2023-07-12 13:52:15 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Garbage collection -- Keep the system clean
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "daily";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
}
|