nix/lib/config/options: remove net-combined

This commit is contained in:
Astro 2023-11-13 23:33:35 +01:00
parent 125beb091d
commit 4e6dd9a4a1
3 changed files with 2 additions and 9 deletions

View File

@ -18,5 +18,4 @@ in
# IP networks # IP networks
++ lib.filesystem.listFilesRecursive ./net; ++ lib.filesystem.listFilesRecursive ./net;
site.net-combined = concatMapAttrsRecursive (name: value: { inherit (value) hosts4 hosts6; }) config.site.net;
} }

View File

@ -591,11 +591,6 @@ in
type = with types; attrsOf (submodule netOpts); type = with types; attrsOf (submodule netOpts);
}; };
net-combined = mkOption {
description = "All hosts of all subnets";
default = {};
type = with types; submodule netOpts;
};
hosts = mkOption { hosts = mkOption {
description = "All the static hosts"; description = "All the static hosts";

View File

@ -10,12 +10,11 @@ let
nixpkgs.lib.generators.toPretty {} self.lib.openwrtModels nixpkgs.lib.generators.toPretty {} self.lib.openwrtModels
); );
export-config = pkgs.writeText "config.nix" ( export-config = pkgs.writeText "config.nix" (
nixpkgs.lib.generators.toPretty {} (lib.filterAttrsRecursive (n: v: n != "net-combined") ( nixpkgs.lib.generators.toPretty {} (
config config
// //
{ site.dns.localZones = self.lib.dns.localZones; } { site.dns.localZones = self.lib.dns.localZones; }
)) ));
);
encrypt-secrets = pkgs.writeScriptBin "encrypt-secrets" '' encrypt-secrets = pkgs.writeScriptBin "encrypt-secrets" ''
#! ${pkgs.runtimeShell} -e #! ${pkgs.runtimeShell} -e