Skip to content

modules/niri: implement hot-reloading#135

Draft
zimward wants to merge 1 commit intoLassulus:mainfrom
zimward:hot-reload
Draft

modules/niri: implement hot-reloading#135
zimward wants to merge 1 commit intoLassulus:mainfrom
zimward:hot-reload

Conversation

@zimward
Copy link
Copy Markdown
Collaborator

@zimward zimward commented Feb 24, 2026

This currently requires niri-git and there seems to be a bug in the switch-to-generation logic to actually trigger an automatic reload, but atleast manual works.

@BirdeeHub
Copy link
Copy Markdown

BirdeeHub commented Mar 16, 2026

https://github.com/BirdeeHub/nix-wrapper-modules/blob/b20ea989ab67ffc70e05b92317666df07b0d948e/wrapperModules/n/niri/module.nix#L300-L311

Is this something we should be doing too? We can add it via like, config.buildCommand.fixNiriReload = { after = [ "symlinkScript" ]; data = basically_that; }; or config.drv.buildPhase = basically_that;

@zimward
Copy link
Copy Markdown
Collaborator Author

zimward commented Mar 16, 2026

so far for a reason i have yet to figure out the systemd unit doesn't actually gets reloaded by switch-to-configuration. i need to look into it once i have a bit more free time.

@BirdeeHub
Copy link
Copy Markdown

BirdeeHub commented Mar 16, 2026

TYSM I don't use niri but I try to keep an eye out for things that may help.

@iynaix
Copy link
Copy Markdown
Contributor

iynaix commented Mar 27, 2026

so far for a reason i have yet to figure out the systemd unit doesn't actually gets reloaded by switch-to-configuration. i need to look into it once i have a bit more free time.

Sadly, restarting user units is just broken: NixOS/nixpkgs#246611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants