Skip to content

modules/niri: implement hot-reloading#135

Merged
zimward merged 1 commit into
Lassulus:mainfrom
zimward:hot-reload
Jun 2, 2026
Merged

modules/niri: implement hot-reloading#135
zimward merged 1 commit into
Lassulus:mainfrom
zimward:hot-reload

Conversation

@zimward

@zimward zimward commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator

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

BirdeeHub commented Mar 16, 2026

Copy link
Copy Markdown

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

zimward commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator Author

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

BirdeeHub commented Mar 16, 2026

Copy link
Copy Markdown

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

@iynaix

iynaix commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

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

@iynaix

iynaix commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

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

This has been implemented! 🎉 NixOS/nixpkgs#507588

@zimward zimward marked this pull request as ready for review June 2, 2026 19:12
@zimward zimward merged commit ce9122b into Lassulus:main Jun 2, 2026
2 checks passed
@zimward zimward deleted the hot-reload branch June 2, 2026 19:20
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