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

Closed
opened 2026-05-12 15:34:01 +10:00 by Ghost · 5 comments
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
Owner

File linking code has been rewritten as of 455761bdbd

File linking code has been rewritten as of 455761bdbd43c6995ac3abca179705eab22f872a
Owner

This has reintroduced the full store path issue whereby config files are now linked by store path, and therefore immutable. But that is another issue #152

This has reintroduced the full store path issue whereby config files are now linked by store path, and therefore immutable. But that is another issue #152
Owner

This has reintroduced the full store path issue whereby config files are now linked by store path, and therefore immutable. But that is another issue #152

This has reintroduced the full store path issue whereby config files are now linked by store path, and therefore immutable. But that is another issue #152
Owner

This has reintroduced the full store path issue whereby config files are now linked by store path, and therefore immutable. But that is another issue #152

This has reintroduced the full store path issue whereby config files are now linked by store path, and therefore immutable. But that is another issue #152
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
#131 Impurity Subset
kruziikrel13/NixOS
Reference
kruziikrel13/NixOS#100
No description provided.