configs

configs
git clone https://git.prime8.dev/configs.git
Log | Files | Refs | README

commit 80e402de5be537a76a8706d9b45444da7842f532
parent 8864e52565798f5fc9bc6aa69bd54a5463d55955
Author: Damian Myrda <damian@prime8.dev>
Date:   Wed, 18 Feb 2026 18:43:16 -0600

Merge branch 'master' of ssh.prime8.dev:moncheeta/config

Diffstat:
M.gitignore | 4++++
Mlink.sh | 25+++++++++++++++++++++++++
Dprograms/.DS_Store | 0
Dprograms/karabiner/.DS_Store | 0
Dprograms/karabiner/._.DS_Store | 0
Dprograms/opencode/.DS_Store | 0
Dprograms/opencode/._.DS_Store | 0
Mprograms/opencode/opencode.json | 6++++--
Aprograms/systemd/logind.conf | 4++++
Aprograms/systemd/sleep.conf | 2++
Msetup.sh | 19+++++++++++++++++++
11 files changed, 58 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,2 +1,6 @@ programs/fish/secrets.fish programs/nvim/lazy-lock.json + +# macOS +.DS_Store +._.DS_Store diff --git a/link.sh b/link.sh @@ -108,6 +108,31 @@ if [ -d "$PROGRAMS_DIR/modprobe" ]; then done fi +# Systemd configs (system-wide, requires sudo) +if [ -d "$PROGRAMS_DIR/systemd" ]; then + echo "→ Installing systemd configs..." + + # Install logind.conf + if [ -f "$PROGRAMS_DIR/systemd/logind.conf" ]; then + echo " → Installing logind.conf" + if [ -e "/etc/systemd/logind.conf" ]; then + sudo mv "/etc/systemd/logind.conf" "/etc/systemd/logind.conf.bak" + fi + sudo cp "$PROGRAMS_DIR/systemd/logind.conf" "/etc/systemd/logind.conf" + echo " ✅ Installed logind.conf" + fi + + # Install sleep.conf + if [ -f "$PROGRAMS_DIR/systemd/sleep.conf" ]; then + echo " → Installing sleep.conf" + if [ -e "/etc/systemd/sleep.conf" ]; then + sudo mv "/etc/systemd/sleep.conf" "/etc/systemd/sleep.conf.bak" + fi + sudo cp "$PROGRAMS_DIR/systemd/sleep.conf" "/etc/systemd/sleep.conf" + echo " ✅ Installed sleep.conf" + fi +fi + # Systemd user services mkdir -p "$HOME/.local/bin" link_config "$PROGRAMS_DIR/systemd/g14-volume-sync" "$HOME/.local/bin/g14-volume-sync" diff --git a/programs/.DS_Store b/programs/.DS_Store Binary files differ. diff --git a/programs/karabiner/.DS_Store b/programs/karabiner/.DS_Store Binary files differ. diff --git a/programs/karabiner/._.DS_Store b/programs/karabiner/._.DS_Store Binary files differ. diff --git a/programs/opencode/.DS_Store b/programs/opencode/.DS_Store Binary files differ. diff --git a/programs/opencode/._.DS_Store b/programs/opencode/._.DS_Store Binary files differ. diff --git a/programs/opencode/opencode.json b/programs/opencode/opencode.json @@ -73,9 +73,11 @@ "command": [ "npx", "-y", - "@modelcontextprotocol/server-postgres", - "postgresql://hark:hark@localhost:5432/hark" + "@modelcontextprotocol/server-postgres" ], + "environment": { + "DATABASE_URL": "{env:DATABASE_URL}" + }, "enabled": true } } diff --git a/programs/systemd/logind.conf b/programs/systemd/logind.conf @@ -0,0 +1,4 @@ +[Login] +HandleLidSwitch=suspend-then-hibernate +HandleLidSwitchExternalPower=suspend-then-hibernate +HandleLidSwitchDocked=ignore diff --git a/programs/systemd/sleep.conf b/programs/systemd/sleep.conf @@ -0,0 +1,2 @@ +[Sleep] +HibernateDelaySec=30min diff --git a/setup.sh b/setup.sh @@ -209,6 +209,25 @@ if [ -d "$RPMS_DIR" ]; then fi fi +# Enable hibernation support +SWAP_DEV="/dev/nvme0n1p3" +if [ -b "$SWAP_DEV" ]; then + SWAP_UUID=$(lsblk -no UUID "$SWAP_DEV" 2>/dev/null || echo "") + if [ -n "$SWAP_UUID" ]; then + if ! rpm-ostree kargs | grep -q "resume=UUID=$SWAP_UUID"; then + echo "Adding resume kernel argument for hibernation..." + sudo rpm-ostree kargs --append="resume=UUID=$SWAP_UUID" + echo "Hibernation enabled. Reboot required to apply changes." + else + echo "Resume kernel argument already set" + fi + else + echo "Warning: Could not determine UUID for $SWAP_DEV" + fi +else + echo "Warning: Swap partition $SWAP_DEV not found" +fi + # Symlink configs "$SCRIPT_DIR/link.sh"