6 Commits
5 changed files with 75 additions and 58 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ Notable Tweaks:
## Usage ## Usage
Begin by installing CachyOS via the standard GUI installer. 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: 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 Packages
- cachyos-micro-settings - cachyos-micro-settings
- cachyos-wallpapers - cachyos-wallpapers
+61 -46
View File
@@ -108,7 +108,6 @@ const zshrc = `# Shell settings
HISTFILE="$XDG_CACHE_HOME"/zsh-histfile HISTFILE="$XDG_CACHE_HOME"/zsh-histfile
HISTSIZE=2500 HISTSIZE=2500
SAVEHIST=2000 SAVEHIST=2000
setopt INC_APPEND_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_FIND_NO_DUPS setopt HIST_FIND_NO_DUPS
unsetopt beep unsetopt beep
@@ -148,6 +147,26 @@ function term_clear() {
zle -N zsh-redraw term_clear zle -N zsh-redraw term_clear
bindkey "^L" zsh-redraw bindkey "^L" zsh-redraw
# get chronological list of explicitly installed packages
function pacplicit() {
# get array of all explicitly installed packages
local explicitly_installed=($(pacman -Qe | sed 's/ .*//'))
# get installation time for each package and store with timestamp for sorting
local package_times=()
for package in $explicitly_installed; do
local line=$(grep -E "(^|[[:space:]])installed $package([[:space:]]|$)" /var/log/pacman.log | tail -1)
local date=${${line:1}%%]*}
local timestamp=$(date -d "$date" +%s)
package_times+=("$timestamp $package")
done
# sort by timestamp and print
printf '%s\n' "${package_times[@]}" | sort -n | while read timestamp package; do
echo "$timestamp: $package"
done
}
# Stock aliases # Stock aliases
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias grep='grep --color=auto' alias grep='grep --color=auto'
@@ -248,86 +267,82 @@ augroup END
` `
const zed = `{ const zed = `{
// rwinkhart/cachyos-postinstall-helper 09/28/2025 // rwinkhart/cachyos-postinstall-helper 01/07/2026
// AI Settings // AI Settings
"telemetry": {
"metrics": false,
"diagnostics": false
},
"edit_predictions": { "edit_predictions": {
"mode": "subtle", "mode": "subtle",
"enabled_in_text_threads": false "enabled_in_text_threads": false,
}, },
"show_edit_predictions": true, "show_edit_predictions": true,
"agent": { // Extension settings
"default_profile": "ask", "icon_theme": "JetBrains New UI Icons (Light)",
"default_model": { "theme": "Dracula",
"provider": "copilot_chat",
"model": "claude-sonnet-4"
}
},
"features": {
"edit_prediction_provider": "copilot"
},
// General Settings // General Settings
"minimap": { "telemetry": {
"show": "always" "metrics": true,
"diagnostics": true,
}, },
"icon_theme": "JetBrains New UI Icons (Dark)", "terminal": {
"shell": {
"program": "zsh",
},
},
"git": {
"inline_blame": {
"enabled": false,
},
},
"indent_guides": {
"enabled": true,
"line_width": 4,
"active_line_width": 8,
"coloring": "indent_aware",
"background_coloring": "disabled",
},
"colorize_brackets": true,
"vim_mode": false,
"middle_click_paste": false, "middle_click_paste": false,
"base_keymap": "VSCode", "base_keymap": "VSCode",
"autosave": "off", "autosave": "off",
"theme": "Gruvbox Dark",
"ui_font_size": 14, "ui_font_size": 14,
"buffer_font_size": 18, "buffer_font_size": 18,
"auto_update": false, "auto_update": false,
"terminal": {
"shell": {
"program": "zsh"
}
},
"tab_size": 4, "tab_size": 4,
"use_autoclose": false,
"use_auto_surround": false,
"preferred_line_length": 120, "preferred_line_length": 120,
"git": {
"inline_blame": {
"enabled": false
}
},
// Language-specific Settings // Language-specific Settings
"languages": { "languages": {
"Python": { "Python": {
"soft_wrap": "preferred_line_length" "soft_wrap": "preferred_line_length",
}, },
"Go": { "Go": {
"hard_tabs": true "hard_tabs": true,
}, },
"JavaScript": {
"format_on_save": "off"
},
"CSS": {
"format_on_save": "off"
}
}, },
// De-clutter UI // De-clutter UI
"tab_bar": { "tab_bar": {
"show_nav_history_buttons": false "show_nav_history_buttons": false,
}, },
"search": { "search": {
"button": false "button": false,
}, },
"title_bar": { "title_bar": {
"show_branch_name": false "show_branch_name": false,
}, },
"notification_panel": { "notification_panel": {
"button": false "button": false,
}, },
"collaboration_panel": { "collaboration_panel": {
"button": false "button": false,
}, },
"git_panel": { "git_panel": {
"button": false "button": true,
} },
"outline_panel": {
"button": false,
},
} }
` `
+4 -4
View File
@@ -1,13 +1,13 @@
module cachy-post module cachy-post
go 1.25.1 go 1.26.4
require ( require (
github.com/moby/sys/mountinfo v0.7.2 github.com/moby/sys/mountinfo v0.7.2
github.com/rwinkhart/go-boilerplate v0.1.0 github.com/rwinkhart/go-boilerplate v0.3.1
) )
require ( require (
golang.org/x/sys v0.33.0 // indirect golang.org/x/sys v0.46.0 // indirect
golang.org/x/term v0.32.0 // indirect golang.org/x/term v0.44.0 // indirect
) )
+6 -6
View File
@@ -1,8 +1,8 @@
github.com/moby/sys/mountinfo v0.7.2 h1:1shs6aH5s4o5H2zQLn796ADW1wMrIwHsyJ2v9KouLrg= github.com/moby/sys/mountinfo v0.7.2 h1:1shs6aH5s4o5H2zQLn796ADW1wMrIwHsyJ2v9KouLrg=
github.com/moby/sys/mountinfo v0.7.2/go.mod h1:1YOa8w8Ih7uW0wALDUgT1dTTSBrZ+HiBLGws92L2RU4= github.com/moby/sys/mountinfo v0.7.2/go.mod h1:1YOa8w8Ih7uW0wALDUgT1dTTSBrZ+HiBLGws92L2RU4=
github.com/rwinkhart/go-boilerplate v0.1.0 h1:EzlVj6R7Bxtl79Nl7R5zRcg6s+Cf2FAqGIzR4giWTQg= github.com/rwinkhart/go-boilerplate v0.3.1 h1:vkVRuptO2s1yPzzwpvtiiB0c/hPB6yr0p1mzZ2Myb9E=
github.com/rwinkhart/go-boilerplate v0.1.0/go.mod h1:cnzIF45I0FCOvE4YIB+26pLCUx2kWyY2llKYZruNaRY= github.com/rwinkhart/go-boilerplate v0.3.1/go.mod h1:ES13A2r9fnCVfyezwMBgY/RgA4pOIudOUXz3Jk/ikes=
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg= golang.org/x/term v0.44.0 h1:0rLvDRCtNj0gZkyIXhCyOb2OAzEhLVqc4B+hrsBhrmc=
golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ= golang.org/x/term v0.44.0/go.mod h1:7ze4MdzUzLXpSAoFP1H0bOI9aXDqveSvatT5vKcFh2Y=
+3 -1
View File
@@ -44,7 +44,9 @@ func system() {
var sysctlConf strings.Builder var sysctlConf strings.Builder
sysctlConf.WriteString("net.ipv6.conf.all.use_tempaddr = 2\nnet.ipv6.conf.default.use_tempaddr = 2") sysctlConf.WriteString("net.ipv6.conf.all.use_tempaddr = 2\nnet.ipv6.conf.default.use_tempaddr = 2")
for _, nic := range nics { for _, nic := range nics {
sysctlConf.WriteString("\nnet.ipv6.conf." + nic.Name() + ".use_tempaddr = 2") sysctlConf.WriteString("\nnet.ipv6.conf.")
sysctlConf.WriteString(nic.Name())
sysctlConf.WriteString(".use_tempaddr = 2")
} }
writeFile(mountPoint+"/etc/sysctl.d/40-ipv6-priv-ext.conf", sysctlConf.String()+"\n", "root", 0644) writeFile(mountPoint+"/etc/sysctl.d/40-ipv6-priv-ext.conf", sysctlConf.String()+"\n", "root", 0644)