1{ lib, ... }:2with lib;3{4 options = with types; {5 tags = mkOption {6 type = listOf str;7 description = "Host tags";8 default = [ ];9 };10 network = mkOption {11 type = submodule {12 options = {13 internalIps = mkOption {14 type = listOf str;15 description = "Internal ips";16 default = [ ];17 };18 externalIps = mkOption {19 type = listOf str;20 description = "External ips";21 default = [ ];22 };23 };24 };25 description = "Network definition of host";26 };27 buildTarget = mkOption {28 type = enum ["toplevel" "sd-image" "installation-cd"];29 };30 };31 config = {32 tags = [ "all" ];33 network = { };34 };35}