X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=flakes%2Fprivate%2Fopendmarc%2Fflake.nix;h=debcfbda9d106cde115dcf811f771fef24c8abbe;hp=4b54ccfbfe336c90963ec060f2c537d23262da7b;hb=910c2e9eb4996bfa12cd1ef925843403f7d3e154;hpb=27dd65fc95a91155367acbe15754dc22c8869552 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