add onlyoffice
This commit is contained in:
@@ -48,7 +48,7 @@ in
|
|||||||
powerManagement.cpuFreqGovernor = "powersave";
|
powerManagement.cpuFreqGovernor = "powersave";
|
||||||
|
|
||||||
nas-apps = {
|
nas-apps = {
|
||||||
collabora.enable = true;
|
collabora.enable = false;
|
||||||
|
|
||||||
deluge.enable = true;
|
deluge.enable = true;
|
||||||
|
|
||||||
@@ -80,6 +80,8 @@ in
|
|||||||
|
|
||||||
ollama.enable = true;
|
ollama.enable = true;
|
||||||
|
|
||||||
|
onlyoffice.enable = true;
|
||||||
|
|
||||||
open-webui.enable = true;
|
open-webui.enable = true;
|
||||||
|
|
||||||
orca-slicer.enable = true;
|
orca-slicer.enable = true;
|
||||||
|
|||||||
30
modules/apps/onlyoffice/default.nix
Normal file
30
modules/apps/onlyoffice/default.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.nas-apps.onlyoffice;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
virtualisation.oci-containers.containers."${cfg.name}" = {
|
||||||
|
autoStart = cfg.autoStart;
|
||||||
|
image = cfg.image;
|
||||||
|
ports = [ "${cfg.port}:80" ];
|
||||||
|
volumes = [
|
||||||
|
# ...
|
||||||
|
];
|
||||||
|
environment = {
|
||||||
|
PUID = cfg.puid;
|
||||||
|
PGID = cfg.pgid;
|
||||||
|
TZ = cfg.timeZone;
|
||||||
|
JWT_SECRET = cfg.jwtSecret;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
47
modules/apps/onlyoffice/options.nix
Normal file
47
modules/apps/onlyoffice/options.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.nas-apps.onlyoffice = {
|
||||||
|
enable = mkEnableOption "onlyoffice docker service";
|
||||||
|
|
||||||
|
autoStart = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "9980";
|
||||||
|
};
|
||||||
|
|
||||||
|
name = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "onlyoffice";
|
||||||
|
};
|
||||||
|
|
||||||
|
image = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "onlyoffice/documentserver";
|
||||||
|
};
|
||||||
|
|
||||||
|
puid = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "911";
|
||||||
|
};
|
||||||
|
|
||||||
|
pgid = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "1000";
|
||||||
|
};
|
||||||
|
|
||||||
|
timeZone = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "America/Chicago";
|
||||||
|
};
|
||||||
|
|
||||||
|
jwtSecret = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "BogieDudie1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
./apps/mealie
|
./apps/mealie
|
||||||
./apps/nextcloud
|
./apps/nextcloud
|
||||||
./apps/ollama
|
./apps/ollama
|
||||||
|
./apps/onlyoffice
|
||||||
./apps/open-webui
|
./apps/open-webui
|
||||||
./apps/orca-slicer
|
./apps/orca-slicer
|
||||||
./apps/puter
|
./apps/puter
|
||||||
|
|||||||
Reference in New Issue
Block a user