X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=flakes%2Fopendmarc%2Fflake.nix;h=e80376ffdfe9ebf3a27f7cce8c0b950d7b6f1f40;hb=HEAD;hp=277fd259c8bbc39800ff09a9ee69cc349505b8f6;hpb=910c2e9eb4996bfa12cd1ef925843403f7d3e154;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/flakes/opendmarc/flake.nix b/flakes/opendmarc/flake.nix index 277fd25..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"; @@ -51,7 +49,9 @@ 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;