1{2 lib,3 pkgs,4 ...5}: let6 inherit (lib) mkOption;7 inherit (lib.types) listOf str submodule;8in {9 options = {10 nixpkgs.resolvedPkgs = mkOption {11 type = lib.types.pkgs // {description = "nixpkgs.pkgs";};12 description = "Value of pkgs";13 };14 tags = mkOption {15 type = listOf str;16 description = "Host tags";17 default = [];18 };19 network = mkOption {20 type = submodule {21 options = {22 internalIps = mkOption {23 type = listOf str;24 description = "Internal ips";25 default = [];26 };27 externalIps = mkOption {28 type = listOf str;29 description = "External ips";30 default = [];31 };32 };33 };34 description = "Network definition of host";35 };36 };37 config = {38 tags = ["all"];39 network = {};40 nixpkgs.resolvedPkgs = pkgs;41 };42}