X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=flakes%2Fprivate%2Fopendmarc%2Fflake.nix;h=2b73070f5df0cde63ca46aa2eaf9ddcb2acff151;hb=da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2;hp=debcfbda9d106cde115dcf811f771fef24c8abbe;hpb=910c2e9eb4996bfa12cd1ef925843403f7d3e154;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/flakes/private/opendmarc/flake.nix b/flakes/private/opendmarc/flake.nix index debcfbd..2b73070 100644 --- a/flakes/private/opendmarc/flake.nix +++ b/flakes/private/opendmarc/flake.nix @@ -3,6 +3,10 @@ path = "../../opendmarc"; type = "path"; }; + inputs.secrets = { + path = "../../secrets"; + type = "path"; + }; inputs.files-watcher = { path = "../../files-watcher"; type = "path"; @@ -14,14 +18,13 @@ inputs.nix-lib.url = "github:NixOS/nixpkgs"; description = "Private configuration for opendmarc"; - outputs = { self, nix-lib, opendmarc, my-lib, files-watcher }: + outputs = { self, nix-lib, opendmarc, my-lib, files-watcher, secrets }: let cfg = name': { config, lib, pkgs, name, ... }: { imports = [ (my-lib.lib.withNarKey files-watcher "nixosModule") (my-lib.lib.withNarKey opendmarc "nixosModule") - #FIXME: - #(my-lib.lib.withNarKey secrets "nixosModule") + (my-lib.lib.withNarKey secrets "nixosModule") ]; config = lib.mkIf (name == name') { users.users."${config.services.opendmarc.user}".extraGroups = [ "keys" ];