[Refactor]: Tidy Up Hyprland File Linking Code #100

Open
opened 2026-05-12 15:34:01 +10:00 by Ghost · 1 comment
Ghost commented 2026-05-12 15:34:01 +10:00 (Migrated from codeberg.org)

github.com/Kruziikrel13/NixOS@b59a9aa8b9/modules/desktop/hyprland/config.nix (L22-L26)

Scope

Hyprland config.nix

Notes / Ideas

Either scan config/hyprland and link the files that way, or create a filename map and iterate over that to link the files.

Ideally, would like to also move variables.lua.in back into config/hyprland

https://github.com/Kruziikrel13/NixOS/blob/b59a9aa8b995c63b6b0e9407db0c7245486de361/modules/desktop/hyprland/config.nix#L22-L26 ### Scope Hyprland `config.nix` ### Notes / Ideas Either scan `config/hyprland` and link the files that way, or create a filename map and iterate over that to link the files. Ideally, would like to also move `variables.lua.in` back into `config/hyprland`
Ghost commented 2026-05-13 11:05:29 +10:00 (Migrated from codeberg.org)

Resolved using a string file map for now in 9dd316e26c.

But as demonstrated by the subsequent commit 6883bf39b4 files can still be missed. So scanning the dir should probably be implemented.

Entire directory as a whole can't be linked as it'll create a readonly directory, which blocks placement of variables.lua

If want to scan the dir, need to convert the paths to strings.

Resolved using a string file map for now in 9dd316e26cd6af3a2390b30511e9d921037d712e. But as demonstrated by the subsequent commit 6883bf39b4dc2d6389bd0c6876bc7dbe56f63e8a files can still be missed. So scanning the dir should probably be implemented. Entire directory as a whole can't be linked as it'll create a readonly directory, which blocks placement of `variables.lua` If want to scan the dir, need to convert the paths to strings.
kruziikrel13 added this to the (deleted) project 2026-05-26 16:26:02 +10:00
kruziikrel13 added this to the v0.2.0 milestone 2026-05-27 14:45:21 +10:00
kruziikrel13 removed their assignment 2026-06-01 15:52:03 +10:00
kruziikrel13 removed their assignment 2026-06-01 15:52:16 +10:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kruziikrel13/NixOS#100
No description provided.