Hi all, noob here. I’m having trouble setting up a display manager and compositor (specifically Lemurs and the River Wayland compodistor) after reinstalling NixOS, and haven’t been able to find much info on configuring these declaratively so far – I tried to set Lemurs up as a service but it won’t start, can’t find the default River config and am at a loss overall. If anyone would be able to point me to resources or guide me towards my desired config, I’d really appreciate it. I’ll try to post my configuration.nix here in the meantime.
Thank you kindly for reading, and I hope we can both gain something from this.
Some suggestions, if you haven’t already:
- Add your user to the seat group, in configuration.nix:
users.users.<your-user-name>.extraGroups = [ "seat" ]
as required by Lemurs
- Set
programs.river.enable = true
in configuration.nix, which makes River available as a desktop session and sets up some basic stuff like desktop portals.
The nixos module doesn’t offer much in the way of configuring River, so you would configure most things the “normal” way in ~/.config/river/init. Home-manager do have a more comprehensive module though.
For configuring Lemurs you would do:
services.displayManager.lemurs.settings = {
a_number = 21 * 2;
fruit_table = {
apples = true;
};
};
settings
in this case is of type TOML value
, which means an attribute set of values that can be serialized into TOML, where the keys are arbitrary (as far as Nix is concerned). Refer to upstream for valid options.
1 Like