hyprland: use shared desktop modules from GitHub
Pin illustris/flake to e09318c and consume its common Home Manager and NixOS Hyprland modules. Keep NVIDIA and monitor-specific settings, HDR controls and LG recovery in the desktop overrides. Remove the duplicated controller, panel, scripts and Waybar patches, update the regression test and documentation, and normalize Nix indentation to tabs with lib.indent for embedded scripts.
This commit is contained in:
18 files changed
+273
-1901
No files matched your search
@@ -1,8 +1,12 @@
|
||||
# Desktop Hyprland
|
||||
|
||||
This host uses Hyprland 0.56's native Lua configuration, managed by UWSM.
|
||||
The shared `illustris` flake points at `/home/illustris/src/flake`; its old
|
||||
laptop-oriented Hyprland module is disabled only on this host.
|
||||
The shared `illustris` input is pinned to `github:illustris/flake` and provides
|
||||
the common NixOS and Home Manager Hyprland modules. The dailyDriver profile
|
||||
imports the home module. This directory keeps only the host's NVIDIA options,
|
||||
display/HDR/HDMI recovery extension, and their tests. The shared controller,
|
||||
bindings, panel, scripts and package patches live in
|
||||
`homeConfigurations/modules/hyprland` in that flake and are also used by Yoga.
|
||||
|
||||
## Daily Use
|
||||
|
||||
@@ -107,7 +111,7 @@ the compositor survived the live RTC suspend/resume tests with the same PID.
|
||||
|
||||
## Package Compatibility
|
||||
|
||||
Waybar 0.15's workspace button sends legacy dispatcher syntax. A local patch
|
||||
Waybar 0.15's workspace button sends legacy dispatcher syntax. A shared patch
|
||||
uses native Lua dispatch and selects workspaces on the clicked monitor.
|
||||
Its event reader also fails to reconnect after a disconnected Hyprland socket,
|
||||
leaving the active workspace highlight stuck. A second patch reconnects and
|
||||
@@ -139,8 +143,10 @@ child process died during system activation, leaving an orphaned lock screen.
|
||||
nix build .#nixosConfigurations.desktop.config.system.build.toplevel
|
||||
sudo nixos-rebuild test --flake .#desktop
|
||||
env -u HYPRLAND_INSTANCE_SIGNATURE Hyprland --verify-config -c ~/.config/hypr/hyprland.lua
|
||||
XDG_RUNTIME_DIR=$(mktemp -d) HYPRLAND_INSTANCE_SIGNATURE=test lua modules/hyprland/test.lua
|
||||
PYTHONDONTWRITEBYTECODE=1 python modules/hyprland/test_panel.py
|
||||
nix build --inputs-from . illustris#checks.x86_64-linux.hyprland
|
||||
shared_hyprland=$(nix flake metadata --inputs-from . --json illustris | jq -r '.path + "/homeConfigurations/modules/hyprland"')
|
||||
XDG_RUNTIME_DIR=$(mktemp -d) HYPRLAND_INSTANCE_SIGNATURE=test \
|
||||
lua modules/hyprland/test.lua "$shared_hyprland"
|
||||
```
|
||||
|
||||
Use `hyprctl eval 'desktop.layout_set("tabbed")'` for IPC commands. Legacy
|
||||
|
||||
Reference in new issue
Block a user