Skip to content

Commit

Permalink
nixos/nextcloud: Rename autocreate (a no-op) to verify_bucket_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Hubrecht committed Apr 13, 2024
1 parent a8dd632 commit dbc114c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/services/web-apps/nextcloud.nix
Expand Up @@ -113,7 +113,7 @@ let
'class' => '\\OC\\Files\\ObjectStore\\S3',
'arguments' => [
'bucket' => '${s3.bucket}',
'autocreate' => ${boolToString s3.autocreate},
'verify_bucket_exists' => ${boolToString s3.verify_bucket_exists},
'key' => '${s3.key}',
'secret' => nix_read_secret('${s3.secretFile}'),
${optionalString (s3.hostname != null) "'hostname' => '${s3.hostname}',"}
Expand Down Expand Up @@ -220,6 +220,7 @@ in {
(mkRenamedOptionModule
[ "services" "nextcloud" "config" "trustedProxies" ] [ "services" "nextcloud" "settings" "trusted_proxies" ])
(mkRenamedOptionModule ["services" "nextcloud" "extraOptions" ] [ "services" "nextcloud" "settings" ])
(mkRenamedOptionModule [ "services" "nextcloud" "config" "objectstore" "s3" "autocreate" ] [ "services" "nextcloud" "config" "objectstore" "s3" "verify_bucket_exists" ])
];

options.services.nextcloud = {
Expand Down Expand Up @@ -483,7 +484,7 @@ in {
The name of the S3 bucket.
'';
};
autocreate = mkOption {
verify_bucket_exists = mkOption {
type = types.bool;
description = lib.mdDoc ''
Create the objectstore if it does not exist.
Expand Down

0 comments on commit dbc114c

Please sign in to comment.