mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-28 04:46:52 -04:00
74 lines
1.3 KiB
Go
74 lines
1.3 KiB
Go
package main
|
|
|
|
import (
|
|
"github.com/rwinkhart/go-boilerplate/front"
|
|
)
|
|
|
|
func applications() {
|
|
for {
|
|
var doAll bool
|
|
choice := front.InputMenuGen("Application to install:", []string{"BACK", "ALL", "pamac-aur", "yay-bin", "htop", "neovim", "virt-manager (also installs qemu-desktop+libvirt)", "librewolf-bin", "zed", "steam"})
|
|
switch choice {
|
|
case 1:
|
|
return
|
|
case 2:
|
|
doAll = true
|
|
fallthrough
|
|
case 3:
|
|
managePackage("-S", "pamac-aur")
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 4:
|
|
managePackage("-S", "yay-bin")
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 5:
|
|
managePackage("-S", "htop")
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 6:
|
|
managePackage("-S", "neovim")
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 7:
|
|
chrootCommandRun([]string{"pacman", "-S", "virt-manager", "qemu-desktop", "libvirt", "--noconfirm"})
|
|
manageService("enable", "libvirtd.service")
|
|
manageService("start", "libvirtd.service")
|
|
// TODO manage user groups!
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 8:
|
|
managePackage("-S", "librewolf-bin")
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 9:
|
|
managePackage("-S", "zed")
|
|
|
|
if !doAll {
|
|
break
|
|
}
|
|
fallthrough
|
|
case 10:
|
|
managePackage("-S", "steam")
|
|
}
|
|
}
|
|
}
|