modules/nextcloud: add option for defaultapp

keep-around/0652afa761cf81185ad8490dc12f3feb074db644
schweby 2021-10-31 08:27:40 +01:00
parent 750b069420
commit 34eb8651d8
1 changed files with 9 additions and 0 deletions

View File

@ -285,6 +285,14 @@ in {
phone-numbers.
'';
};
defaultapp = mkOption {
default = null;
type = types.nullOr types.str;
example = "files";
description = ''
This options sets the app that opens as default.
'';
};
};
caching = {
@ -477,6 +485,7 @@ in {
${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"}
'log_type' => 'syslog',
'log_level' => '${builtins.toString cfg.logLevel}',
${optionalString (c.defaultapp != null) "'defaultapp' => '${c.defaultapp}',"}
${optionalString (c.overwriteProtocol != null) "'overwriteprotocol' => '${c.overwriteProtocol}',"}
${optionalString (c.dbname != null) "'dbname' => '${c.dbname}',"}
${optionalString (c.dbhost != null) "'dbhost' => '${c.dbhost}',"}