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" ];
|
|
|
|
|
2023-12-17 01:06:31 +01:00
|
|
|
|
|
|
|
# This is now done with deploy-rs
|
2023-07-12 13:52:15 +02:00
|
|
|
# Keep the system up-to-date automatically
|
2023-12-17 01:06:31 +01:00
|
|
|
# system = {
|
|
|
|
# autoUpgrade = {
|
|
|
|
# enable = true;
|
|
|
|
# allowReboot = false;
|
|
|
|
# dates = "daily";
|
|
|
|
# flake = "git+file:/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";
|
|
|
|
};
|
|
|
|
}
|