From 449291f339aaee625ec826ff6893f84861612784 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 23 Nov 2023 15:02:52 +0100 Subject: [PATCH] sops --- nixos/queen/nextcloud.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/queen/nextcloud.nix b/nixos/queen/nextcloud.nix index 36f3e6b..f4b7012 100644 --- a/nixos/queen/nextcloud.nix +++ b/nixos/queen/nextcloud.nix @@ -49,9 +49,9 @@ dbuser = "nextcloud"; dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself dbname = "nextcloud"; - dbpassFile = "/var/nextcloud-db-pass"; + dbpassFile = sops.secrets."nextclouddb".path; - adminpassFile = "/var/nextcloud-admin-pass"; + adminpassFile = sops.secrets."nextcloudadmin".path; adminuser = "admin"; }; }; @@ -65,7 +65,7 @@ ensureUsers = [ { name = "nextcloud"; - ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; + ensureDBOwnership."DATABASE nextcloud" = "ALL PRIVILEGES"; } ]; };