This commit is contained in:
Lyn 2024-07-01 21:08:29 +02:00
parent 4c51ad0198
commit e51e8341f5
2 changed files with 16 additions and 4 deletions

View file

@ -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";
};
}

View file

@ -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 = {