Files
PVV-DNS/flake.nix

35 lines
704 B
Nix

{
description = "Nyota - PVV DNS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
dns.url = "github:nix-community/dns.nix";
};
outputs =
{ nixpkgs, dns, ... }@inputs:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: lib.genAttrs systems f;
in
{
packages = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
rec {
zoneConfig = pkgs.callPackage ./zoneConfig.nix {
inherit dns;
};
default = zoneConfig;
}
);
};
}