X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=flakes%2Fopendmarc%2Fflake.nix;h=70b8cd7171a11069a734ecb1875e916d8a8e60fd;hb=1a64deeb894dc95e2645a75771732c6cc53a79ad;hp=f1877b63721a70363f71c3bd65ef339f74e903f8;hpb=1009efb436c36100bfcc5ad9597b106198fb6764;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/flakes/opendmarc/flake.nix b/flakes/opendmarc/flake.nix index f1877b6..70b8cd7 100644 --- a/flakes/opendmarc/flake.nix +++ b/flakes/opendmarc/flake.nix @@ -2,9 +2,7 @@ description = "Open source ARC implementation"; inputs.myuids = { - url = "https://git.immae.eu/perso/Immae/Config/Nix.git"; - type = "git"; - dir = "flakes/myuids"; + url = "path:../myuids"; }; inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.nixpkgs.url = "github:NixOS/nixpkgs"; @@ -48,10 +46,12 @@ nixosModule = { config, lib, pkgs, ... }: let cfg = config.services.opendmarc; - defaultSock = "local:/run/opendmarc/opendmarc.sock"; - args = [ "-f" "-l" "-p" cfg.socket ] ++ lib.optionals (cfg.configFile != null) [ "-c" cfg.configFile ]; + defaultSock = "/run/opendmarc/opendmarc.sock"; + args = [ "-f" "-l" "-p" "local:${cfg.socket}" ] ++ lib.optionals (cfg.configFile != null) [ "-c" cfg.configFile ]; in { - options = { + # Necessary for situations where flake gets included multiple times + key = builtins.hashString "sha256" (builtins.path { path = self.sourceInfo.outPath; name = "source"; }); + options = { services.opendmarc = { enable = lib.mkOption { type = lib.types.bool;