From f31351a2598c2b910b0d0e4836a9a41396f28de4 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Wed, 13 May 2026 22:27:51 +0200 Subject: [PATCH] Restore nymph hardware and power management config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-add NVIDIA/Intel GPU packages, tlp/power-profiles-daemon, and emptty error logging to host_vars/nymph.yml — these were dropped when the Arch path was removed but are independent of Arch and needed for nymph laptop hardware. Drop two orphaned Wayland/Sway residues: kanshi config and the historical Sway cleanup script. Co-Authored-By: Claude Sonnet 4.6 --- ansible/inventory/host_vars/nymph.yml | 16 ++++++ dotfiles/nymph/.config/kanshi/config | 17 ------- scripts/cleanup_nymph_sway.sh | 73 --------------------------- 3 files changed, 16 insertions(+), 90 deletions(-) delete mode 100644 dotfiles/nymph/.config/kanshi/config delete mode 100755 scripts/cleanup_nymph_sway.sh diff --git a/ansible/inventory/host_vars/nymph.yml b/ansible/inventory/host_vars/nymph.yml index dcf5d80..adc32cb 100644 --- a/ansible/inventory/host_vars/nymph.yml +++ b/ansible/inventory/host_vars/nymph.yml @@ -6,3 +6,19 @@ desktop_sessions_enabled: desktop_default_session: i3 desktop_default_session_env: xorg +desktop_emptty_session_error_logging: rotate + +host_packages: + - nvidia + - linux-mainline-headers + - mesa-dri + - vulkan-loader + - mesa-vulkan-intel + - intel-video-accel + - power-profiles-daemon + - tlp + - tlp-rdw + - upower + +host_enabled_services: + - tlp diff --git a/dotfiles/nymph/.config/kanshi/config b/dotfiles/nymph/.config/kanshi/config deleted file mode 100644 index a96e34a..0000000 --- a/dotfiles/nymph/.config/kanshi/config +++ /dev/null @@ -1,17 +0,0 @@ -profile solo { - output DP-1 disable - output DP-2 disable - output HDMI-A-1 disable - output HDMI-A-2 disable - output eDP-1 enable mode 1920x1080 position 0,0 - exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output eDP-1; workspace 3, move workspace to output eDP-1; workspace 4, move workspace to output eDP-1; workspace 5, move workspace to output eDP-1; workspace 6, move workspace to output eDP-1; workspace 7, move workspace to output eDP-1; workspace 8, move workspace to output eDP-1; workspace 9, move workspace to output eDP-1; workspace 10, move workspace to output eDP-1" -} - -profile dual { - output DP-2 disable - output HDMI-A-1 disable - output HDMI-A-2 disable - output eDP-1 enable mode 1920x1080 position 0,0 - output DP-1 enable mode 3440x1440@100Hz position 1920,0 - exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output DP-1; workspace 3, move workspace to output DP-1; workspace 4, move workspace to output DP-1; workspace 5, move workspace to output DP-1; workspace 6, move workspace to output DP-1; workspace 7, move workspace to output DP-1; workspace 8, move workspace to output DP-1; workspace 9, move workspace to output DP-1; workspace 10, move workspace to output DP-1" -} diff --git a/scripts/cleanup_nymph_sway.sh b/scripts/cleanup_nymph_sway.sh deleted file mode 100755 index cc3ab29..0000000 --- a/scripts/cleanup_nymph_sway.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env sh - -set -eu - -PACKAGES=" -swayfx -kanshi -grim -grimshot -slurp -wl-clipboard -xdg-desktop-portal-wlr -cliphist -noctalia-shell -" - -USER_PATHS=" -$HOME/.config/sway -$HOME/.config/kanshi -$HOME/.config/noctalia -$HOME/.local/share/noctalia-plugins -$HOME/.local/bin/start-sway-session -" - -SYSTEM_FILES=" -/etc/emptty/wayland-sessions/Sway.desktop -/etc/xbps.d/noctalia.conf -" - -check_host() { - if [ "$(hostname)" != "nymph" ]; then - printf 'Error: questo script è destinato solo a nymph (hostname attuale: %s)\n' "$(hostname)" >&2 - exit 1 - fi -} - -remove_packages() { - printf 'Rimozione pacchetti swayfx+noctalia...\n' - # shellcheck disable=SC2086 - sudo xbps-remove -Ry $PACKAGES - printf 'Rimozione dipendenze orfane...\n' - sudo xbps-remove -o -} - -remove_user_configs() { - printf 'Rimozione configurazioni utente...\n' - for path in $USER_PATHS; do - if [ -e "$path" ]; then - rm -rf "$path" - printf ' rimosso: %s\n' "$path" - fi - done -} - -remove_system_files() { - printf 'Rimozione file di sistema...\n' - for file in $SYSTEM_FILES; do - if [ -e "$file" ]; then - sudo rm -f "$file" - printf ' rimosso: %s\n' "$file" - fi - done -} - -main() { - check_host - remove_packages - remove_user_configs - remove_system_files - printf 'Cleanup completato.\n' -} - -main "$@"