This commit is contained in:
mjallen18
2025-11-16 19:22:39 -06:00
parent 2a77d233f9
commit 6dc81d0cbf
9 changed files with 375 additions and 140 deletions

View File

@@ -0,0 +1,27 @@
{
config,
lib,
namespace,
...
}:
let
cfg = config.${namespace}.services.onlyoffice;
jwtSecretFile = config.sops.secrets."jallen-nas/onlyoffice-key".path;
in
{
options.${namespace}.services.onlyoffice = {
enable = lib.mkEnableOption "";
};
config = lib.mkIf cfg.enable {
#services.nginx.virtualHosts."office.mjallen.dev".listen = [ { addr = "0.0.0.0"; port = 9943; } ];
services.onlyoffice = {
enable = true;
port = 9943;
hostname = "office.mjallen.dev";
jwtSecretFile = jwtSecretFile;
};
};
}