diff --git a/modules/base.nix b/modules/base.nix index 3ce779b..3b96f02 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -6,10 +6,25 @@ with lib; nix = { extraOptions = "experimental-features = nix-command flakes"; package = pkgs.nixFlakes; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 20d"; + }; + settings = { + auto-optimise-store = true; + }; }; - nixpkgs.config.allowUnFree = true; + system.autoUpgrade = { + enable = true; + dates = "02:00"; + allowReboot = false; + flake = "${config.users.users.chris.home}/conf"; + flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ]; + }; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;