qois.cloud: make adminpassFile an option
This commit is contained in:
parent
0a8af07b08
commit
b295ae9396
1 changed files with 6 additions and 1 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue