Compare commits

...

2 Commits

Author SHA1 Message Date
Sandro - b2b8ba1252
Remove duplicated IP range 2024-04-14 14:23:49 +02:00
Sandro - bc56014b83
Cleanup 2024-04-14 13:44:00 +02:00
4 changed files with 8 additions and 13 deletions

View File

@ -33,9 +33,8 @@
# Config, and utilities
lib = nixpkgs.lib.extend (_final: _prev:
import ./nix/lib {
inherit self;
inherit openwrt;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
inherit self openwrt;
inherit (nixpkgs.legacyPackages.x86_64-linux) lib pkgs;
});
# Everything that can be built locally outside of NixOS

View File

@ -1,13 +1,13 @@
{ self, pkgs, openwrt }:
{ self, lib, openwrt, pkgs }:
rec {
config = (import ./config { inherit self pkgs; }).config;
inherit (import ./config { inherit self pkgs; }) config;
netmasks = import ./netmasks.nix;
subnet = import ./subnet { inherit pkgs; };
dns = import ./dns.nix { inherit pkgs config; };
dns = import ./dns.nix { inherit config lib; };
openwrtModels = import ./openwrt-models.nix { inherit self openwrt; };

View File

@ -1,8 +1,5 @@
{ pkgs, config }:
{ config, lib }:
let
lib = pkgs.lib;
in
rec {
ns = "dns.serv.zentralwerk.org";
internalNS = [ ns ];
@ -20,7 +17,6 @@ rec {
"78.20.172.in-addr.arpa"
"79.20.172.in-addr.arpa"
"99.22.172.in-addr.arpa"
"99.22.172.in-addr.arpa"
"22.10.in-addr.arpa"
];
dynamicReverseZones6 = [

View File

@ -1,13 +1,13 @@
# Pulls together NixOS configuration modules according to the
# name/role of the host to be built.
{ hostName, config, lib, ... }:
{ hostName, lib, ... }:
let
inherit (lib) optionals;
hostConfig = lib.config.site.hosts.${hostName};
in {
site = lib.config.site;
inherit (lib.config) site;
imports = [
../lib/config/options.nix