This commit is contained in:
soraefir
2026-05-10 11:49:18 +02:00
parent 89d2f9a48e
commit 28c17d9bb6
2 changed files with 15 additions and 4 deletions

View File

@@ -136,11 +136,11 @@ in {
$OCC config:app:set theming url --value="https://${containerCfg.subdomain}.${serverCfg.hostDomain}" $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 ? 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}"''} ${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 logo {serverCfg.colorScheme.logo}
#$OCC theming:config logoheader /var/www/html/data/my_header_logo.png #$OCC theming:config logoheader {serverCfg.colorScheme.logo}
#$OCC theming:config background /var/www/html/data/my_wallpaper.jpg #$OCC theming:config background {serverCfg.colorScheme.bg}
else else
echo "Nextcloud is already installed. Skipping setup." echo "Nextcloud is already installed. Skipping setup."

View File

@@ -93,6 +93,17 @@ let
type = types.str; type = types.str;
default = "/media/data"; 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 { containers = mkOption {
type = types.attrsOf (types.submodule { type = types.attrsOf (types.submodule {
options = { options = {