path = "../../opendmarc";
type = "path";
};
- inputs.nixpkgs.url = "github:NixOS/nixpkgs";
+ inputs.nix-lib.url = "github:NixOS/nixpkgs";
+
+ # Necessary for dependencies
+ inputs.nixpkgs.follows = "opendmarc/nixpkgs";
description = "Private configuration for opendmarc";
- outputs = { self, nixpkgs, opendmarc }:
+ outputs = { self, nix-lib, opendmarc, nixpkgs }:
let
cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') {
users.users."${config.services.opendmarc.user}".extraGroups = [ "keys" ];
};
in
opendmarc.outputs //
- { nixosModules = opendmarc.nixosModules or {} // nixpkgs.lib.genAttrs ["eldiron" "backup-2"] cfg; };
+ { nixosModules = opendmarc.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron" "backup-2"] cfg; };
}