Include fudo-lib for ip functions

This commit is contained in:
niten 2023-11-17 09:34:55 -08:00
parent 831109a31d
commit 119707d359
2 changed files with 9 additions and 4 deletions

View File

@ -1,12 +1,17 @@
{
description = "Authoritative DNS Server";
inputs = { nixpkgs.url = "nixpkgs/nixos-23.05"; };
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
fudo-lib.url = "git+https://git.fudo.org/fudo-nix/lib.git";
};
outputs = { self, nixpkgs, ... }: {
outputs = { self, nixpkgs, fudo-lib, ... }: {
nixosModules = rec {
default = authoritativeDns;
authoritativeDns = { ... }: { imports = [ ./authoritative-dns.nix ]; };
authoritativeDns = { ... }: {
imports = [ ./authoritative-dns.nix fudo-lib.nixosModules.lib ];
};
};
};
}

View File

@ -6,7 +6,7 @@
with pkgs.lib;
let
inherit (pkgs.lib.fudo.ip)
inherit (pkgs.lib.ip)
networkMinIp networkMaxIp ipv4OnNetwork getNetworkMask getNetworkBase;
range = base: top: