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