Include fudo-lib for ip functions
This commit is contained in:
parent
831109a31d
commit
119707d359
11
flake.nix
11
flake.nix
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue