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,
inputs,
config,
pkgs,
...
}:
let
setup = import ../factories/mkserver.nix { inherit lib config; };
cfg = config.my.servers.stash;
cfgS = config.services.stash;
stashPythonFHS = pkgs.buildFHSEnv {
@@ -28,7 +28,7 @@ let
};
in
{
options.my.servers.stash = inputs.self.lib.mkServerOptions "stash" "xxx" 9999 lib;
options.my.servers.stash = setup.mkOptions "stash" "xxx" 9999;
config = lib.mkIf (cfg.enable && config.my.secureHost) {
sops.secrets = {
"stash/password".sopsFile = ../../secrets/secrets.yaml;