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/tools/commento/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'modules/private/websites/tools/commento/default.nix') diff --git a/modules/private/websites/tools/commento/default.nix b/modules/private/websites/tools/commento/default.nix index d0e7d24..c36255b 100644 --- a/modules/private/websites/tools/commento/default.nix +++ b/modules/private/websites/tools/commento/default.nix @@ -12,10 +12,9 @@ in enable = lib.mkEnableOption "Enable commento website"; }; config = lib.mkIf cfg.enable { - secrets.keys = [ - { - dest = "commento/env"; - permission = "0400"; + secrets.keys = { + "commento/env" = { + permissions = "0400"; text = '' COMMENTO_ORIGIN=https://commento.immae.eu/ COMMENTO_PORT=${port} @@ -29,8 +28,8 @@ in COMMENTO_SMTP_PASSWORD=${env.smtp.password} COMMENTO_SMTP_FROM_ADDRESS=${env.smtp.email} ''; - } - ]; + }; + }; services.websites.env.tools.vhostConfs.commento = { certName = "eldiron"; -- cgit v1.2.3