homepage-dashboard init

This commit is contained in:
2024-07-05 18:27:11 -06:00
parent 91650b3263
commit 96e5a4b8ca
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{ lib, config, proxyReverse, ... }:
let port = 8082;
in {
options.my.servers.homepage.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.homepage.enable {
# sops.secrets.homepage.sopsFile = ../../secrets/env.yaml;
services = {
homepage-dashboard = {
enable = true;
listenPort = port;
};
nginx = {
enable = true;
virtualHosts."home.${config.my.domain}" = proxyReverse port // { };
};
};
};
}