|
56 | 56 |
|
57 | 57 | types = prev.types // { |
58 | 58 | networking = lib.types.submodule { |
| 59 | + # keep-sorted start skip_lines=1 block=yes newline_separated=yes |
59 | 60 | options = { |
60 | | - name = lib.mkOption { |
61 | | - type = lib.types.nullOr lib.types.str; |
62 | | - description = "Host name as string."; |
| 61 | + cid = lib.mkOption { |
| 62 | + type = lib.types.nullOr lib.types.int; |
63 | 63 | default = null; |
| 64 | + description = '' |
| 65 | + Vsock CID (Context IDentifier) as integer: |
| 66 | + - VMADDR_CID_HYPERVISOR (0) is reserved for services built into the hypervisor |
| 67 | + - VMADDR_CID_LOCAL (1) is the well-known address for local communication (loopback) |
| 68 | + - VMADDR_CID_HOST (2) is the well-known address of the host |
| 69 | + ''; |
64 | 70 | }; |
65 | | - mac = lib.mkOption { |
| 71 | + |
| 72 | + interfaceName = lib.mkOption { |
66 | 73 | type = lib.types.nullOr lib.types.str; |
67 | | - description = "MAC address as string."; |
68 | 74 | default = null; |
| 75 | + description = "Name of the network interface."; |
69 | 76 | }; |
| 77 | + |
70 | 78 | ipv4 = lib.mkOption { |
71 | 79 | type = lib.types.nullOr lib.types.str; |
72 | 80 | description = "IPv4 address as string."; |
73 | 81 | default = null; |
74 | 82 | }; |
75 | | - ipv6 = lib.mkOption { |
76 | | - type = lib.types.nullOr lib.types.str; |
77 | | - description = "IPv6 address as string."; |
78 | | - default = null; |
79 | | - }; |
| 83 | + |
80 | 84 | ipv4SubnetPrefixLength = lib.mkOption { |
81 | 85 | type = lib.types.nullOr lib.types.int; |
82 | 86 | default = null; |
83 | 87 | description = "The IPv4 subnet prefix length (e.g. 24 for 255.255.255.0)"; |
84 | 88 | example = 24; |
85 | 89 | }; |
86 | | - interfaceName = lib.mkOption { |
| 90 | + |
| 91 | + ipv6 = lib.mkOption { |
87 | 92 | type = lib.types.nullOr lib.types.str; |
| 93 | + description = "IPv6 address as string."; |
88 | 94 | default = null; |
89 | | - description = "Name of the network interface."; |
90 | 95 | }; |
91 | | - cid = lib.mkOption { |
92 | | - type = lib.types.nullOr lib.types.int; |
| 96 | + |
| 97 | + mac = lib.mkOption { |
| 98 | + type = lib.types.nullOr lib.types.str; |
| 99 | + description = "MAC address as string."; |
| 100 | + default = null; |
| 101 | + }; |
| 102 | + |
| 103 | + name = lib.mkOption { |
| 104 | + type = lib.types.nullOr lib.types.str; |
| 105 | + description = "Host name as string."; |
93 | 106 | default = null; |
94 | | - description = '' |
95 | | - Vsock CID (Context IDentifier) as integer: |
96 | | - - VMADDR_CID_HYPERVISOR (0) is reserved for services built into the hypervisor |
97 | | - - VMADDR_CID_LOCAL (1) is the well-known address for local communication (loopback) |
98 | | - - VMADDR_CID_HOST (2) is the well-known address of the host |
99 | | - ''; |
100 | 107 | }; |
| 108 | + |
101 | 109 | }; |
| 110 | + # keep-sorted end |
102 | 111 | }; |
103 | 112 |
|
| 113 | + ghafApplication = lib.types.submodule { |
| 114 | + # keep-sorted start skip_lines=1 block=yes |
| 115 | + options = { |
| 116 | + |
| 117 | + description = lib.mkOption { |
| 118 | + type = lib.types.str; |
| 119 | + }; |
| 120 | + desktopName = lib.mkOption { |
| 121 | + type = lib.types.str; |
| 122 | + default = ""; |
| 123 | + }; |
| 124 | + exec = lib.mkOption { |
| 125 | + type = lib.types.nullOr lib.types.str; |
| 126 | + description = "Command to execute inside the VM."; |
| 127 | + default = null; |
| 128 | + }; |
| 129 | + extraModules = lib.mkOption { |
| 130 | + description = "Additional modules required for the application"; |
| 131 | + type = lib.types.listOf lib.types.attrs; |
| 132 | + default = [ ]; |
| 133 | + }; |
| 134 | + genericName = lib.mkOption { |
| 135 | + type = lib.types.nullOr lib.types.str; |
| 136 | + default = null; |
| 137 | + }; |
| 138 | + givcArgs = lib.mkOption { |
| 139 | + description = "A list of GIVC arguments for the application"; |
| 140 | + type = lib.types.listOf lib.types.str; |
| 141 | + default = [ ]; |
| 142 | + }; |
| 143 | + icon = lib.mkOption { |
| 144 | + type = lib.types.nullOr lib.types.str; |
| 145 | + default = null; |
| 146 | + }; |
| 147 | + name = lib.mkOption { |
| 148 | + type = lib.types.str; |
| 149 | + description = "Desktop entry filename."; |
| 150 | + }; |
| 151 | + packages = lib.mkOption { |
| 152 | + type = lib.types.listOf lib.types.package; |
| 153 | + description = "A list of packages required for the application"; |
| 154 | + default = [ ]; |
| 155 | + }; |
| 156 | + startupWMClass = lib.mkOption { |
| 157 | + type = lib.types.nullOr lib.types.str; |
| 158 | + default = null; |
| 159 | + }; |
| 160 | + vm = lib.mkOption { |
| 161 | + description = "VM name in case this launches an isolated application."; |
| 162 | + type = lib.types.nullOr lib.types.str; |
| 163 | + default = null; |
| 164 | + }; |
| 165 | + }; |
| 166 | + # keep-sorted end |
| 167 | + }; |
104 | 168 | }; |
105 | 169 |
|
106 | 170 | # Launcher utilities |
|
0 commit comments