nixos/hosts/nb/modules
Dominik Polakovics 28ed3fcf74 fix(nb): resolve keyboard/touchpad and btrfs read-only issues after suspend
This commit addresses two critical suspend/resume issues on the nb host:

1. Keyboard and touchpad not working after suspend
   - Added i2c_hid_acpi kernel module
   - Created systemd service to reload the module after resume
   - Excluded input devices from TLP USB autosuspend

2. /nix/persist becoming read-only after suspend
   - Moved swap from /nix/persist to dedicated @swap subvolume
   - Added systemd service to remount /nix/persist if needed
   - Separated swap from persistent data to prevent btrfs corruption

Changes:
- Created hosts/nb/modules/suspend-fixes.nix with resume hooks
- Updated swap path from /nix/persist/swapfile to /swap/swapfile
- Added /swap filesystem mount for @swap btrfs subvolume
- Added USB_EXCLUDE_INPUT=1 to TLP configuration

Note: Manual step required before deployment - create @swap subvolume.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 16:43:02 +02:00
..
desktop fix(nb): resolve keyboard/touchpad and btrfs read-only issues after suspend 2025-10-19 16:43:02 +02:00
development feat: nvim update terminal keybindings 2025-10-19 16:03:29 +02:00
sway feat: nb battery improvement 2025-10-19 12:01:45 +02:00
appimage.nix refactor folder structure 2024-12-01 12:35:59 +01:00
battery-brightness.nix feat: nb battery improvement 2025-10-19 12:01:45 +02:00
cyberghost.nix add cyberghost vpn for chatgpt 2025-02-04 11:52:12 +01:00
fingerprint.nix feat: update Signal desktop execution command for hardware acceleration and modify Sway terminal configuration 2025-06-02 21:04:51 +02:00
mcp-global.nix feat: update MCP configuration to include additional permissions for nixos and puppeteer modules 2025-06-05 15:06:18 +02:00
ollama.nix feat: nb battery improvement 2025-10-19 12:01:45 +02:00
printer.nix feat: many changes 2025-08-01 19:48:49 +02:00
puppeteer.nix many changes 2025-02-23 16:00:33 +01:00
qdrant.nix feat: nb battery improvement 2025-10-19 12:01:45 +02:00
set-nix-channel.nix feat: add set-nix-channel module to manage nix-channel automatically 2025-05-29 00:38:12 +02:00
steam.nix changes 2024-12-21 13:47:00 +01:00
suspend-fixes.nix fix(nb): resolve keyboard/touchpad and btrfs read-only issues after suspend 2025-10-19 16:43:02 +02:00