AppManager: Format cue files
Change-Id: Ia37908797b0227ab3b66e0faab08dcc2379e5282
diff --git a/core/installer/values-tmpl/virtual-machine.cue b/core/installer/values-tmpl/virtual-machine.cue
index 2c0bea0..f531799 100644
--- a/core/installer/values-tmpl/virtual-machine.cue
+++ b/core/installer/values-tmpl/virtual-machine.cue
@@ -1,36 +1,36 @@
input: {
- name: string @name(Hostname)
- username: string @name(Username)
- authKey?: string @name(Auth Key) @role(VPNAuthKey) @usernameField(username) @enabledField(vpnEnabled)
- cpuCores: int | *1 @name(CPU Cores)
- memory: string | *"2Gi" @name(Memory)
- vpnEnabled?: bool @name(Enable VPN)
- codeServerEnabled?: bool @name(Install VSCode Server)
+ name: string @name(Hostname)
+ username: string @name(Username)
+ authKey?: string @name(Auth Key) @role(VPNAuthKey) @usernameField(username) @enabledField(vpnEnabled)
+ cpuCores: int | *1 @name(CPU Cores)
+ memory: string | *"2Gi" @name(Memory)
+ vpnEnabled?: bool @name(Enable VPN)
+ codeServerEnabled?: bool @name(Install VSCode Server)
}
-name: "Virtual Machine"
-namespace: "app-vm"
-readme: "Virtual Machine"
+name: "Virtual Machine"
+namespace: "app-vm"
+readme: "Virtual Machine"
description: "Virtual Machine"
icon: """
- <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 2048 2048"><path fill="currentColor" d="M1280 384H640V256h640zm0 1024H640v-128h640zm0 256H640v-128h640zM1408 0q27 0 50 10t40 27t28 41t10 50v1792H384V128q0-27 10-50t27-40t41-28t50-10zm0 128H512v1664h896z"/></svg>"""
+ <svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 2048 2048"><path fill="currentColor" d="M1280 384H640V256h640zm0 1024H640v-128h640zm0 256H640v-128h640zM1408 0q27 0 50 10t40 27t28 41t10 50v1792H384V128q0-27 10-50t27-40t41-28t50-10zm0 128H512v1664h896z"/></svg>"""
out: {
vm: {
"\(input.name)": {
username: input.username
- domain: global.domain
+ domain: global.domain
cpuCores: input.cpuCores
- memory: input.memory
+ memory: input.memory
if input.vpnEnabled != _|_ {
if !input.vpnEnabled {
vpn: enabled: false
}
if input.vpnEnabled {
vpn: {
- enabled: true
+ enabled: true
loginServer: "https://headscale.\(global.domain)"
- authKey: input.authKey
+ authKey: input.authKey
}
}
}