nix/container/Office.nix

23 lines
555 B
Nix
Raw Normal View History

2024-06-09 23:35:53 +03:00
{ container, pkgs, util, ... } @args: let
cfg = container.config.office;
in {
containers.office = container.mkContainer cfg {
config = { ... }: container.mkContainerConfig cfg {
services.onlyoffice = let
dbName = "onlyoffice";
in {
enable = true;
hostname = cfg.domain;
postgresName = dbName;
postgresHost = container.config.postgres.address;
postgresUser = dbName;
postgresPasswordFile = "${pkgs.writeText "OfficeDbPassword" dbName}";
examplePort = cfg.port;
enableExampleServer = true;
};
};
};
}