diff --git a/configuration.nix b/configuration.nix index a4aab73..e3bc0dc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -83,7 +83,10 @@ MAX_FILES = 20; }; - settings.service.DISABLE_REGISTRATION = true; + settings.service = { + DISABLE_REGISTRATION = true; + DEFAULT_KEEP_EMAIL_PRIVATE = true; + }; database = { user = "forgejo"; passwordFile = "/etc/nixos/forgejo-dbpassword"; @@ -124,7 +127,16 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.05"; # Did you read the comment? - + system.stateVersion = "24.05"; # Did you read the comment? + + system.autoUpgrade = { + enable = true; + allowReboot = true; + }; +nix.gc = { + automatic = true; + persistent = true; + options = "--delete-older-than 8d"; + }; } diff --git a/flake.nix b/flake.nix index 22a192b..1aa2158 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "Forgejo flake"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; }; outputs = { self, nixpkgs }@inputs: { nixosConfigurations = {