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 --- flakes/private/opendmarc/flake.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'flakes/private/opendmarc/flake.nix') diff --git a/flakes/private/opendmarc/flake.nix b/flakes/private/opendmarc/flake.nix index 2b73070..e2575e7 100644 --- a/flakes/private/opendmarc/flake.nix +++ b/flakes/private/opendmarc/flake.nix @@ -53,9 +53,8 @@ config.secrets.fullPaths."opendmarc/ignore.hosts" ]; }; - secrets.keys = [ - { - dest = "opendmarc/ignore.hosts"; + secrets.keys = { + "opendmarc/ignore.hosts" = { user = config.services.opendmarc.user; group = config.services.opendmarc.group; permissions = "0400"; @@ -67,8 +66,8 @@ builtins.concatStringsSep "\n" ([ config.myEnv.mail.dmarc.ignore_hosts ] ++ lib.mapAttrsToList (n: v: v.fqdn) mxes); - } - ]; + }; + }; }; }; in -- cgit v1.2.3