1{2 lib,3 pkgs,4 ...5}: let6 inherit (lib.options) mkOption;7 inherit (lib.types) listOf str submodule;8 inherit (lib.modules) mkRemovedOptionModule;9in {10 options = {11 12 13 _resolvedPkgs = mkOption {14 type = lib.types.pkgs // {description = "nixpkgs.pkgs";};15 description = "Value of pkgs";16 };17 network = mkOption {18 type = submodule {19 options = {20 internalIps = mkOption {21 type = listOf str;22 description = "Internal ips";23 default = [];24 };25 externalIps = mkOption {26 type = listOf str;27 description = "External ips";28 default = [];29 };30 };31 };32 description = "Network definition of host";33 };34 };35 imports = [36 (mkRemovedOptionModule ["tags"] "tags are now defined at the host level, not the nixos system level for fast filtering without evaluating unnecessary hosts.")37 ];38 config = {39 network = {};40 _resolvedPkgs = pkgs;41 };42}