6 Commits
5 changed files with 75 additions and 58 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ Notable Tweaks:
## Usage
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-micro-settings
- cachyos-wallpapers
+61 -46
View File
@@ -108,7 +108,6 @@ const zshrc = `# Shell settings
HISTFILE="$XDG_CACHE_HOME"/zsh-histfile
HISTSIZE=2500
SAVEHIST=2000
setopt INC_APPEND_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_FIND_NO_DUPS
unsetopt beep
@@ -148,6 +147,26 @@ function term_clear() {
zle -N zsh-redraw term_clear
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
alias ls='ls --color=auto'
alias grep='grep --color=auto'
@@ -248,86 +267,82 @@ augroup END
`
const zed = `{
// rwinkhart/cachyos-postinstall-helper 09/28/2025
// rwinkhart/cachyos-postinstall-helper 01/07/2026
// AI Settings
"telemetry": {
"metrics": false,
"diagnostics": false
},
"edit_predictions": {
"mode": "subtle",
"enabled_in_text_threads": false
"enabled_in_text_threads": false,
},
"show_edit_predictions": true,
"agent": {
"default_profile": "ask",
"default_model": {
"provider": "copilot_chat",
"model": "claude-sonnet-4"
}
},
"features": {
"edit_prediction_provider": "copilot"
},
// Extension settings
"icon_theme": "JetBrains New UI Icons (Light)",
"theme": "Dracula",
// General Settings
"minimap": {
"show": "always"
"telemetry": {
"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,
"base_keymap": "VSCode",
"autosave": "off",
"theme": "Gruvbox Dark",
"ui_font_size": 14,
"buffer_font_size": 18,
"auto_update": false,
"terminal": {
"shell": {
"program": "zsh"
}
},
"tab_size": 4,
"use_autoclose": false,
"use_auto_surround": false,
"preferred_line_length": 120,
"git": {
"inline_blame": {
"enabled": false
}
},
// Language-specific Settings
"languages": {
"Python": {
"soft_wrap": "preferred_line_length"
"soft_wrap": "preferred_line_length",
},
"Go": {
"hard_tabs": true
"hard_tabs": true,
},
"JavaScript": {
"format_on_save": "off"
},
"CSS": {
"format_on_save": "off"
}
},
// De-clutter UI
"tab_bar": {
"show_nav_history_buttons": false
"show_nav_history_buttons": false,
},
"search": {
"button": false
"button": false,
},
"title_bar": {
"show_branch_name": false
"show_branch_name": false,
},
"notification_panel": {
"button": false
"button": false,
},
"collaboration_panel": {
"button": false
"button": false,
},
"git_panel": {
"button": false
}
"button": true,
},
"outline_panel": {
"button": false,
},
}
`
+4 -4
View File
@@ -1,13 +1,13 @@
module cachy-post
go 1.25.1
go 1.26.4
require (
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 (
golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/sys v0.46.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/go.mod h1:1YOa8w8Ih7uW0wALDUgT1dTTSBrZ+HiBLGws92L2RU4=
github.com/rwinkhart/go-boilerplate v0.1.0 h1:EzlVj6R7Bxtl79Nl7R5zRcg6s+Cf2FAqGIzR4giWTQg=
github.com/rwinkhart/go-boilerplate v0.1.0/go.mod h1:cnzIF45I0FCOvE4YIB+26pLCUx2kWyY2llKYZruNaRY=
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg=
golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ=
github.com/rwinkhart/go-boilerplate v0.3.1 h1:vkVRuptO2s1yPzzwpvtiiB0c/hPB6yr0p1mzZ2Myb9E=
github.com/rwinkhart/go-boilerplate v0.3.1/go.mod h1:ES13A2r9fnCVfyezwMBgY/RgA4pOIudOUXz3Jk/ikes=
golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
golang.org/x/term v0.44.0 h1:0rLvDRCtNj0gZkyIXhCyOb2OAzEhLVqc4B+hrsBhrmc=
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
sysctlConf.WriteString("net.ipv6.conf.all.use_tempaddr = 2\nnet.ipv6.conf.default.use_tempaddr = 2")
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)