add harbor nc secrets

This commit is contained in:
2025-04-03 15:41:33 +02:00
parent 2257a6dff8
commit 326cde73dd
4 changed files with 32 additions and 8 deletions

View File

@@ -20,11 +20,15 @@ in {
default = true;
description = "Use SSL and auto-update certificates";
};
adminPasswordFile = lib.mkOption {
type = lib.types.path;
example = "/etc/nc-admin-pass.txt";
description = "Path to the file containing the Nextcloud admin password";
};
};
config = lib.mkIf cfg.enable {
environment.etc."nc-admin-pass.txt".text = "replace-me-with-a-sops-secret";
services.nextcloud = {
# Instance
enable = true;
@@ -35,7 +39,7 @@ in {
# DB
config.dbtype = "pgsql";
config.dbhost = "/run/postgresql";
config.adminpassFile = "/etc/nc-admin-pass.txt"; # FIXME: sops
config.adminpassFile = cfg.adminPasswordFile;
#Mail
settings = {