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