From bfb6a8aef68d9568727627a8b5b0facb405a6313 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sun, 15 Sep 2024 10:49:44 -0500 Subject: [PATCH] upgrading forgejo to v8 --- nixos/hosts/varda/default.nix | 7 +++++-- nixos/modules/nixos/services/forgejo/default.nix | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/varda/default.nix b/nixos/hosts/varda/default.nix index ffacdc9..ab6cfa4 100644 --- a/nixos/hosts/varda/default.nix +++ b/nixos/hosts/varda/default.nix @@ -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; }; }; diff --git a/nixos/modules/nixos/services/forgejo/default.nix b/nixos/modules/nixos/services/forgejo/default.nix index cfea3ff..8528175 100644 --- a/nixos/modules/nixos/services/forgejo/default.nix +++ b/nixos/modules/nixos/services/forgejo/default.nix @@ -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";