From 910c2e9eb4996bfa12cd1ef925843403f7d3e154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 7 Oct 2021 15:22:57 +0200 Subject: Refactor opendmarc/openarc flakes --- flakes/private/opendmarc/flake.lock | 8 ++++---- flakes/private/opendmarc/flake.nix | 9 +++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'flakes/private/opendmarc') diff --git a/flakes/private/opendmarc/flake.lock b/flakes/private/opendmarc/flake.lock index ea056e5..121f51d 100644 --- a/flakes/private/opendmarc/flake.lock +++ b/flakes/private/opendmarc/flake.lock @@ -59,11 +59,11 @@ }, "nix-lib": { "locked": { - "lastModified": 1630358951, - "narHash": "sha256-y6jh6YDWX6fX88tS9bSFOVSnckCL4qgt7UqUJhLPSx8=", + "lastModified": 1633008342, + "narHash": "sha256-wZV5YidnsqV/iufDIhaZip3LzwUGeIt8wtdiGS5+cXc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2d786792ca69c98a8655858464e53698ad7311e2", + "rev": "6eae8a116011f4db0aa5146f364820024411d6bb", "type": "github" }, "original": { @@ -109,7 +109,7 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "narHash": "sha256-eIe5hzNsp1zz5m4ZMzORwdHuLkhEsKkS7WMpPOJE4ok=", + "narHash": "sha256-7jup/d3+WXXWsNMB7Sp5Py4rJQV30Z5+PJITBISbQ9o=", "path": "../../opendmarc", "type": "path" }, diff --git a/flakes/private/opendmarc/flake.nix b/flakes/private/opendmarc/flake.nix index 4b54ccf..debcfbd 100644 --- a/flakes/private/opendmarc/flake.nix +++ b/flakes/private/opendmarc/flake.nix @@ -17,13 +17,18 @@ outputs = { self, nix-lib, opendmarc, my-lib, files-watcher }: let cfg = name': { config, lib, pkgs, name, ... }: { - imports = [ (my-lib.lib.withNarKey files-watcher "nixosModule") ]; + imports = [ + (my-lib.lib.withNarKey files-watcher "nixosModule") + (my-lib.lib.withNarKey opendmarc "nixosModule") + #FIXME: + #(my-lib.lib.withNarKey secrets "nixosModule") + ]; config = lib.mkIf (name == name') { users.users."${config.services.opendmarc.user}".extraGroups = [ "keys" ]; systemd.services.opendmarc.serviceConfig.Slice = "mail.slice"; services.opendmarc = { enable = true; - socket = "local:${config.myServices.mail.milters.sockets.opendmarc}"; + socket = "/run/opendmarc/opendmarc.sock"; configFile = pkgs.writeText "opendmarc.conf" '' AuthservID HOSTNAME FailureReports false -- cgit v1.2.3