| Crates.io | nirinit |
| lib.rs | nirinit |
| version | 0.1.4 |
| created_at | 2025-10-02 10:04:18.733227+00 |
| updated_at | 2026-01-02 08:56:21.637712+00 |
| description | A session manager for Niri, a scrollable-tiling Wayland compositor |
| homepage | |
| repository | https://github.com/amaanq/nirinit |
| max_upload_size | |
| id | 1864127 |
| size | 68,411 |
Session manager for Niri that automatically saves and restores your window layout.
{
inputs.nirinit = {
url = "github:amaanq/nirinit";
inputs.nixpkgs.follows = "nixpkgs";
};
# In your NixOS configuration:
imports = [ nirinit.nixosModules.nirinit ];
services.nirinit.enable = true;
# In your Home Manager configuration:
imports = [ nirinit.homeModules.nirinit ];
services.nirinit.settings.skip.apps = [ "discord" "firefox" ];
}
cargo install --path .
# Run as systemd user service or manually
nirinit --save-interval 300
The config file is located at : $XDG_CONFIG_HOME/nirinit/config.toml
(for most users this would be ~/.config/nirinit/config.toml)
[skip]
apps = ["discord", "slack"]
The session file is located at $XDG_DATA_HOME/nirinit/session.json
(again, for most users this would be ~/.local/share/nirinit/session.json)
Normally, you shouldn't need to touch this, but if you notice something odd happening when your session is being restored, deleting this file might help.
MPL-2.0