manage nextcloud admin-pass with sops
This commit is contained in:
parent
41cb36d15f
commit
85b5c2bce6
2 changed files with 11 additions and 3 deletions
|
|
@ -10,6 +10,12 @@
|
|||
mode = "0400";
|
||||
};
|
||||
|
||||
sops.secrets."nextcloud/admin-pass" = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
mode = "0400";
|
||||
};
|
||||
|
||||
services = {
|
||||
|
||||
nextcloud = {
|
||||
|
|
@ -23,7 +29,7 @@
|
|||
config = {
|
||||
dbtype = "mysql";
|
||||
adminuser = "tobi";
|
||||
adminpassFile = "/var/lib/nextcloud/admin-pass";
|
||||
adminpassFile = config.sops.secrets."nextcloud/admin-pass".path;
|
||||
};
|
||||
|
||||
autoUpdateApps.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue