Deploy Hyprland config from Lua branch source

This commit is contained in:
2026-04-28 15:51:03 -07:00
parent ddb77a5a52
commit b52b2bcb57
2 changed files with 18 additions and 5 deletions

View File

@@ -202,12 +202,17 @@ needs a live readback check.
- [x] hyprNStack flake build check. - [x] hyprNStack flake build check.
- [x] hyprexpo Lua-branch flake build check. - [x] hyprexpo Lua-branch flake build check.
- [x] `ryzen-shine` system dry-run. - [x] `ryzen-shine` system dry-run.
- [x] `just switch` activates successfully and deploys branch-owned
`~/.config/hypr/hyprland.lua`.
- [x] Re-run checks after Hyprland/Lua input confirmation. - [x] Re-run checks after Hyprland/Lua input confirmation.
- [ ] Try live compositor smoke test again after version bump. - [ ] Try live compositor smoke test again after version bump.
- [x] Document `--verify-config` caveats for Lua rule/plugin-specific config. - [x] Document `--verify-config` caveats for Lua rule/plugin-specific config.
- [ ] Eventually run `just switch` only when the branch is coherent enough for a - [x] Eventually run `just switch` only when the branch is coherent enough for a
live test. live test.
Live-smoke note: this Hyprland binary exposes `--verify-config` but no Live-smoke note: this Hyprland binary exposes `--verify-config` but no
`--headless` CLI flag. A true compositor smoke test still needs either a nested `--headless` CLI flag. `just switch` now installs the Lua branch binary and
Wayland session that avoids startup side effects or an intentional `just switch`. deploys `hyprland.lua`, but the currently running compositor remains the old
0.53 process until the Hyprland session is restarted. A true compositor smoke
test still needs a session restart or a nested Wayland session that avoids
startup side effects.

View File

@@ -39,7 +39,15 @@ let
home-manager.sharedModules = [ home-manager.sharedModules = [
inputs.hyprscratch.homeModules.default inputs.hyprscratch.homeModules.default
{ ({ config, ... }: {
xdg.configFile."hypr" = {
force = true;
source =
if cfg.useLuaConfigBranch
then ../dotfiles/config/hypr
else config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/dotfiles/config/hypr";
};
services.kanshi = { services.kanshi = {
enable = true; enable = true;
systemdTarget = "graphical-session.target"; systemdTarget = "graphical-session.target";
@@ -139,7 +147,7 @@ let
}; };
}; };
}; };
} })
]; ];
# Hyprland-specific packages # Hyprland-specific packages