29 lines
822 B
Nix
29 lines
822 B
Nix
|
{
|
||
|
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; };
|
||
|
};
|
||
|
};
|
||
|
}
|