reverted server factory

This commit is contained in:
Danilo Reyes
2025-10-12 19:59:46 -06:00
parent 8664061145
commit e393a4481b
35 changed files with 74 additions and 126 deletions

View File

@@ -1,11 +1,11 @@
{
lib,
config,
inputs,
pkgs,
...
}:
let
setup = import ../factories/mkserver.nix { inherit lib config; };
cfg = config.my.servers.gitea;
in
{
@@ -13,7 +13,7 @@ in
../nix/gitea-actions-runners/ryujinx.nix
../nix/gitea-actions-runners/nixos.nix
];
options.my.servers.gitea = inputs.self.lib.mkServerOptions "gitea" "git" 9083 lib;
options.my.servers.gitea = setup.mkOptions "gitea" "git" 9083;
config = lib.mkIf (cfg.enable && config.my.secureHost) {
sops.secrets.gitea.sopsFile = ../../secrets/env.yaml;
services.gitea = {