From b295ae93966fe46e206eb731eeeddb49422382cd Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Sat, 14 Jun 2025 21:04:26 +0200 Subject: [PATCH] qois.cloud: make adminpassFile an option --- nixos-modules/cloud/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos-modules/cloud/default.nix b/nixos-modules/cloud/default.nix index ee503bb..aaba0ef 100644 --- a/nixos-modules/cloud/default.nix +++ b/nixos-modules/cloud/default.nix @@ -3,6 +3,7 @@ config, lib, pkgs, + options, ... }: @@ -30,6 +31,10 @@ with lib; "nextcloud30" ]; }; + + adminpassFile = options.services.nextcloud.config.adminpassFile // { + default = config.sops.secrets."nextcloud/admin".path; + }; }; config = mkIf cfg.enable { @@ -59,7 +64,7 @@ with lib; database.createLocally = true; config = { - adminpassFile = config.sops.secrets."nextcloud/admin".path; + inherit (cfg) adminpassFile; adminuser = "root"; dbtype = "pgsql"; };