backplane-dns/flake.nix

29 lines
822 B
Nix
Raw Permalink Normal View History

2023-02-06 15:18:31 -08:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
utils.url = "github:numtide/flake-utils";
backplane-server.url = "";
};
outputs = { self, nixpkgs, utils, backplane-server, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
backplane-server-pkgs = backplane-server.packages."${system}";
in {
packages = rec {
default = backplane-dns;
backplane-dns = import ./backplane-dns.nix {
inherit pkgs;
inherit (backplane-server.packages."${system}") backplane-server;
};
};
}) // {
nixosModules = rec {
default = backplane-dns;
backplane-dns =
import ./module.nix { local-packages = self.packages; };
};
};
}