diff --git a/modules/server/containers/defs/nextcloud.nix b/modules/server/containers/defs/nextcloud.nix index d9fc888..f4310f9 100644 --- a/modules/server/containers/defs/nextcloud.nix +++ b/modules/server/containers/defs/nextcloud.nix @@ -136,11 +136,11 @@ in { $OCC config:app:set theming url --value="https://${containerCfg.subdomain}.${serverCfg.hostDomain}" ${lib.optionalString (containerCfg.extra ? name) ''$OCC config:app:set theming name --value="${containerCfg.extra.name}"''} ${lib.optionalString (containerCfg.extra ? slogan) ''$OCC config:app:set theming slogan --value="${containerCfg.extra.slogan}"''} - $OCC config:app:set theming color --value="#${config.colorScheme.palette.base0C}" + $OCC config:app:set theming color --value="${serverCfg.colorScheme.palette.base0C}" - #$OCC theming:config logo /var/www/html/data/my_logo.png - #$OCC theming:config logoheader /var/www/html/data/my_header_logo.png - #$OCC theming:config background /var/www/html/data/my_wallpaper.jpg + #$OCC theming:config logo {serverCfg.colorScheme.logo} + #$OCC theming:config logoheader {serverCfg.colorScheme.logo} + #$OCC theming:config background {serverCfg.colorScheme.bg} else echo "Nextcloud is already installed. Skipping setup." diff --git a/modules/shared/syscfg/default.nix b/modules/shared/syscfg/default.nix index fbaf6e8..979eac6 100644 --- a/modules/shared/syscfg/default.nix +++ b/modules/shared/syscfg/default.nix @@ -93,6 +93,17 @@ let type = types.str; default = "/media/data"; }; + + colorScheme = mkOption { + type = types.submodule { + options = { + slug = mkOption { type = types.str; }; + name = mkOption { type = types.str; }; + palette = mkOption { type = types.attrsOf types.str; }; + }; + }; + default = import ../colors; + }; containers = mkOption { type = types.attrsOf (types.submodule { options = {