upgrading forgejo to v8

This commit is contained in:
Joseph Hanson 2024-09-15 10:49:44 -05:00
parent 75e2605c64
commit bfb6a8aef6
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ ... }: {
{ pkgs, ... }: {
imports = [ ];
networking.hostId = "cdab8473";
@ -28,7 +28,10 @@
system.motd.networkInterfaces = [ "enp1s0" ];
security.acme.enable = true;
services = {
forgejo.enable = true;
forgejo = {
enable = true;
package = pkgs.unstable.forgejo;
};
nginx.enable = true;
};
};

View file

@ -9,6 +9,10 @@ in
{
options.mySystem.services.forgejo = {
enable = mkEnableOption "Forgejo";
package = mkOption {
type = types.package;
default = pkgs.forgejo;
};
};
config = mkIf cfg.enable {
@ -25,6 +29,7 @@ in
services.forgejo = {
enable = true;
package = cfg.package;
# enable sql db dumps daily
dump.enable = true;
database.type = "postgres";