syntax changes + all the arrs modules

This commit is contained in:
2024-06-14 18:10:56 -06:00
parent c80e097ba0
commit add0490415
13 changed files with 162 additions and 80 deletions

View File

@@ -1,6 +1,4 @@
{ lib, config, proxyReverse, ... }:
let port = config.services.microbin.settings.MICROBIN_PORT;
in {
{ lib, config, proxyReverse, ... }: {
options.my.servers.microbin = {
enable = lib.mkEnableOption "enable";
enableCron = lib.mkEnableOption "enable";
@@ -21,8 +19,8 @@ in {
};
nginx = {
enable = true;
virtualHosts."copy.${config.my.servers.settings.domain}" =
proxyReverse port // { };
virtualHosts."copy.${config.my.domain}" =
proxyReverse config.services.microbin.settings.MICROBIN_PORT // { };
};
};
};