From 4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 16 Oct 2021 17:40:07 +0200 Subject: Use attrs for secrets instead of lists --- modules/private/websites/richie/production.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/private/websites/richie/production.nix') diff --git a/modules/private/websites/richie/production.nix b/modules/private/websites/richie/production.nix index 2d85175..3efa9f0 100644 --- a/modules/private/websites/richie/production.nix +++ b/modules/private/websites/richie/production.nix @@ -29,8 +29,7 @@ in services.duplyBackup.profiles.richie_production.remotes = ["eriomem" "ovh"]; services.webstats.sites = [ { name = "europe-richie.org"; } ]; - secrets.keys = [{ - dest = "websites/richie/production"; + secrets.keys."websites/richie/production" = { user = apacheUser; group = apacheGroup; permissions = "0400"; @@ -48,7 +47,7 @@ in $smtp_mailer->Auth('${smtp_mailer.user}', '${smtp_mailer.password}'); ?> ''; - }]; + }; services.websites.webappDirs.richie_production = richieSrc; system.activationScripts.richie_production = { deps = [ "httpd" ]; -- cgit v1.2.3