migrated lambdas to setup.nix + lambda for server files

This commit is contained in:
2024-10-02 18:16:06 -06:00
parent 6181709ca3
commit ef00d45148
21 changed files with 118 additions and 347 deletions

View File

@@ -1,12 +1,7 @@
{
lib,
config,
proxyReverse,
setup,
...
}:
{ lib, config, ... }:
let
cfg = config.my.servers.metube;
setup = import ../setup.nix { inherit lib config; };
in
{
options.my.servers.metube = setup.mkOptions "metube" "bajameesta" 8881;
@@ -25,7 +20,7 @@ in
};
};
services.nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
proxyReverse cfg.hostName cfg.port // { }
setup.proxyReverse cfg.hostName cfg.port // { }
);
};
}