Add Nix code (not complete)

This commit is contained in:
2023-02-06 15:18:31 -08:00
parent b77d6a294a
commit 8b4b1cead6
3 changed files with 179 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
{
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; };
};
};
}