Skip to content

Commit f32e6f2

Browse files
authored
Misc fixes pt. II (#11)
* Add support for VirtualBox Installs the package and sets up the groups. * Fix QEMU config definition * Fix redundant variable names in autostart --------- Co-authored-by: Bahar KURT <kurtbahartr@users.noreply.github.com>
1 parent 141fec9 commit f32e6f2

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

.chezmoidata/linux/arch/packages.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,23 @@ packages:
128128
flatpak: []
129129

130130
virtualization:
131-
kvm_packages:
132-
pacman:
133-
- qemu-desktop
134-
- libvirt
135-
aur: []
136-
flatpak: []
131+
qemu:
132+
kvm:
133+
pacman:
134+
- qemu-desktop
135+
- libvirt
136+
aur: []
137+
flatpak: []
137138

138-
virt_manager_packages:
139+
virt_manager:
140+
pacman:
141+
- virt-manager
142+
aur: []
143+
flatpak: []
144+
145+
virtualbox:
139146
pacman:
140-
- virt-manager
147+
- virtualbox
141148
aur: []
142149
flatpak: []
143150

.chezmoidata/linux/common/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ config:
5858
enable: false
5959
# Virt Manager is a frontend for KVM/QEMU
6060
virt_manager: false
61+
virtualbox: false
6162

6263
### Desktop Stack ###
6364
desktop_stack:

.chezmoidata/linux/common/groups.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- video
33
- input
44
- render
5+
virtualbox:
6+
- vboxusers
57
kvm_groups:
68
- libvirt
79
- kvm

.chezmoiscripts/linux/arch/run_once_06_install-packages.sh.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ add_packages \
107107
"{{ join " " .packages.system.virtualization.qemu.virt_manager.flatpak }}"
108108
{{- end }}
109109

110+
{{- if .config.system.virtualization.virtualbox }}
111+
add_packages \
112+
"{{ join " " .packages.system.virtualization.virtualbox.pacman }}" \
113+
"{{ join " " .packages.system.virtualization.virtualbox.aur }}" \
114+
"{{ join " " .packages.system.virtualization.virtualbox.flatpak }}"
115+
{{- end }}
116+
110117
{{- if .config.system.packages.extra_fonts }}
111118
add_packages \
112119
"{{ join " " .packages.system.font.pacman }}" \

.chezmoiscripts/linux/common/run_once_100_join_supplementary_groups.sh.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ echo "Checking for and adding missing KVM groups..."
3333
add_groups {{ join " " .kvm_groups }}
3434
{{- end }}
3535

36+
{{- if .config.system.virtualization.virtualbox }}
37+
echo "Checking for and adding missing KVM groups..."
38+
add_groups {{ join " " .virtualbox }}
39+
{{- end }}
40+
3641
{{- if .config.system.packages.gaming }}
3742
echo "Checking for and adding missing gaming groups..."
3843
add_groups {{ join " " .gaming }}

dot_config/hypr/hyprautostart.conf.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ exec-once = $HYPRSCRIPTS/fabric-reload.sh
1919
# Kanata
2020
exec-once = kanata -c ~/.config/kanata/config.kbd
2121
{{ end }}
22-
{{ if has "proton-vpn-gtk-app" .packages.pacman }}
22+
{{ if has "proton-vpn-gtk-app" .packages.system.user_packages.pacman }}
2323
exec-once = protonvpn-app --start-minimized
2424
{{ end }}
2525
{{ if .config.system.packages.fcitx5 }}
2626
exec-once = fcitx5 -d -r
2727
{{ end }}
28-
{{ if has "kdeconnect" .packages.pacman }}
28+
{{ if has "kdeconnect" .packages.system.user_packages.pacman }}
2929
exec-once = kdeconnect-indicator
3030
{{ end }}

0 commit comments

Comments
 (0)