infra: nextcloud: fix merge conflict artefacts

main
Katharina Fey 2 years ago
parent 5c1c1fdf9a
commit 0622395338
Signed by: kookie
GPG Key ID: 90734A9E619C8A6C
  1. 17
      infra/libkookie/nixpkgs/unstable/nixos/modules/services/web-apps/nextcloud.nix

@ -87,10 +87,8 @@ in {
default = "/var/lib/nextcloud"; default = "/var/lib/nextcloud";
description = "Storage path of nextcloud."; description = "Storage path of nextcloud.";
}; };
<<<<<<< HEAD datadir = mkOption {
dataHome = mkOption {
type = types.str; type = types.str;
description = "Storage path of nextcloud.";
defaultText = "config.services.nextcloud.home"; defaultText = "config.services.nextcloud.home";
description = '' description = ''
Data storage path of nextcloud. Will be <xref linkend="opt-services.nextcloud.home" /> by default. Data storage path of nextcloud. Will be <xref linkend="opt-services.nextcloud.home" /> by default.
@ -142,7 +140,6 @@ in {
Set to false to disable the installation of apps from the global appstore. App management is always enabled regardless of this setting. Set to false to disable the installation of apps from the global appstore. App management is always enabled regardless of this setting.
''; '';
}; };
>>>>>>> 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be
logLevel = mkOption { logLevel = mkOption {
type = types.ints.between 0 4; type = types.ints.between 0 4;
default = 2; default = 2;
@ -650,8 +647,8 @@ in {
[ 'path' => '${cfg.home}/apps', 'url' => '/apps', 'writable' => false ], [ 'path' => '${cfg.home}/apps', 'url' => '/apps', 'writable' => false ],
[ 'path' => '${cfg.home}/store-apps', 'url' => '/store-apps', 'writable' => true ], [ 'path' => '${cfg.home}/store-apps', 'url' => '/store-apps', 'writable' => true ],
], ],
'datadirectory' => '${cfg.dataHome}', ${optionalString (showAppStoreSetting) "'appstoreenabled' => ${renderedAppStoreSetting},"}
>>>>>>> 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be 'datadirectory' => '${datadir}/data',
'skeletondirectory' => '${cfg.skeletonDirectory}', 'skeletondirectory' => '${cfg.skeletonDirectory}',
${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"} ${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"}
'log_type' => 'syslog', 'log_type' => 'syslog',
@ -694,10 +691,8 @@ in {
${if c.dbuser != null then "--database-user" else null} = ''"${c.dbuser}"''; ${if c.dbuser != null then "--database-user" else null} = ''"${c.dbuser}"'';
"--database-pass" = "\$${dbpass.arg}"; "--database-pass" = "\$${dbpass.arg}";
"--admin-user" = ''"${c.adminuser}"''; "--admin-user" = ''"${c.adminuser}"'';
<<<<<<< HEAD "--admin-pass" = "\$${adminpass.arg}";
"--admin-pass" = adminpass; "--data-dir" = ''"${datadir}/data"'';
||||||| 8a2ec31e224
>>>>>>> 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be
}); });
in '' in ''
${mkExport dbpass} ${mkExport dbpass}
@ -747,7 +742,7 @@ in {
# create nextcloud directories. # create nextcloud directories.
# if the directories exist already with wrong permissions, we fix that # if the directories exist already with wrong permissions, we fix that
for dir in ${cfg.home}/config ${cfg.dataHome} ${cfg.home}/store-apps; do for dir in ${datadir}/config ${datadir}/data ${cfg.home}/store-apps ${cfg.home}/nix-apps; do
if [ ! -e $dir ]; then if [ ! -e $dir ]; then
install -o nextcloud -g nextcloud -d $dir install -o nextcloud -g nextcloud -d $dir
elif [ $(stat -c "%G" $dir) != "nextcloud" ]; then elif [ $(stat -c "%G" $dir) != "nextcloud" ]; then

Loading…
Cancel
Save