colors
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user