Reduce removals list to only things that cannot be unchecked during installation

This commit is contained in:
2025-09-28 03:15:43 -04:00
parent 93fe7a13bd
commit a986d9b17e
4 changed files with 33 additions and 22 deletions
+29 -1
View File
@@ -2,7 +2,35 @@
This is a simple utility meant to address what I personally dislike about the base CachyOS installation.
## Usage
Begin by installing CachyOS via the standard GUI installer. You may desire to uncheck the installation of `cachyos-zsh-config` and `firefox`. Please use systemd-boot.
Begin by installing CachyOS via the standard GUI installer.
If you intend on using all options provided by this utility, it is best to use systemd-boot, ext4, and to **_un_**check the following during installation:
- CachyOS Packages
- cachyos-micro-settings
- cachyos-wallpapers
- CachyOS shell configuration
- Base-devel + Common packages
- X-system
- Network
- modemmanager
- firewall
- packages management
- paru
- octopi
- audio
- pavucontrol
- Some applications selection
- alacritty
- btop
- nano-syntax-highlighting
- vi
- ripgrep
- micro
- nano
- vim
- CPU specific Microcode update packages
- whichever one you don't need
- Firefox and language package
As soon as the system is installed and booted, run this utility as root and follow the prompts! That's it.
-7
View File
@@ -26,7 +26,6 @@ func applications() {
fallthrough
case 4:
managePackage("-S", "yay-bin")
managePackage("-Rcns", "paru")
if !doAll {
break
@@ -34,7 +33,6 @@ func applications() {
fallthrough
case 5:
managePackage("-S", "htop")
managePackage("-Rcns", "btop")
if !doAll {
break
@@ -42,11 +40,6 @@ func applications() {
fallthrough
case 6:
managePackage("-S", "neovim")
cmd := exec.Command("pacman", "-Rcns", "vi", "vim", "nano", "micro", "--noconfirm")
err := cmd.Run()
if err != nil {
other.PrintError("Failed to perform application removals for neovim installation", 1)
}
if !doAll {
break
+3 -13
View File
@@ -10,32 +10,22 @@ import (
func removals() {
for {
var doAll bool
choice := front.InputMenuGen("Application to remove:", []string{"back", "all", "alacritty", "pavucontrol", "bash", "linux-cachyos-lts", "ufw", "modemmanager"})
choice := front.InputMenuGen("Application to remove:", []string{"back", "all", "bash", "linux-cachyos-lts"})
var target string
switch choice {
case 1:
return
case 2:
cmd := exec.Command("pacman", "-Rcns", "back", "alacritty", "pavucontrol", "bash", "linux-cachyos-lts", "ufw", "modemmanager", "--noconfirm")
cmd := exec.Command("pacman", "-Rcns", "bash", "linux-cachyos-lts", "--noconfirm")
err := cmd.Run()
if err != nil {
other.PrintError("Failed to perform application removals", 1)
}
doAll = true
case 3:
target = "alacritty"
case 4:
target = "pavucontrol"
case 5:
target = "bash"
case 6:
case 4:
target = "linux-cachyos-lts"
case 7:
target = "ufw"
manageService("stop", "ufw.service")
manageService("disable", "ufw.service")
case 8:
target = "modemmanager"
}
if !doAll {
managePackage("-Rcns", target)
+1 -1
View File
@@ -79,7 +79,7 @@ depends=(
}
managePackage("-U", "/tmp/custom-base-devel/base-devel-1-2-any.pkg.tar.xz")
managePackage("-S", "opendoas")
cmd = exec.Command("pacman", "-R", "sudo", "qt-sudo", "octopi")
cmd = exec.Command("pacman", "-R", "sudo", "qt-sudo", "octopi", "--noconfirm")
err = cmd.Run()
if err != nil {
other.PrintError("Failed to remove sudo", 1)