22 lines
No EOL
562 B
Nix
22 lines
No EOL
562 B
Nix
{ pkgs, config, ... }: {
|
|
# 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";
|
|
flake = "path:/etc/nixos/flake.nix";
|
|
option = "switch";
|
|
};
|
|
};
|
|
|
|
# Garbage collection -- Keep the system clean
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
} |