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,13 +1,8 @@
{
lib,
config,
proxyReverse,
setup,
...
}:
{ lib, config, ... }:
let
services = import ./homepage/services.nix { inherit config lib; };
cfg = config.my.servers.homepage;
setup = import ../setup.nix { inherit lib config; };
in
{
options.my.servers.homepage = setup.mkOptions "homepage" "home" 8082;
@@ -127,7 +122,7 @@ in
];
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
proxyReverse cfg.hostName cfg.port // { }
setup.proxyReverse cfg.hostName cfg.port // { }
);
};
};