homepage-dashboard init
This commit is contained in:
18
modules/servers/homepage.nix
Normal file
18
modules/servers/homepage.nix
Normal 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 // { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user