Missing "desktops" attribute in sessionData

Hey, I’m trying to add emptty based on this PR’s config: NixOS Module: Emptty Display Manager by the-argus · Pull Request #224378 · NixOS/nixpkgs · GitHub, but when I try to build I get an error

       error: attribute 'desktops' missing
       at /home/chris/dentritic-nix/modules/features/emptty.nix:21:33:
           20|         AUTO_SELECTION=true
           21|         WAYLAND_SESSIONS_PATH=${config.services.displayManager.sessionData.desktops}/share/wayland-sessions/
             |                                 ^
           22|       '';

Right now the only desktop I have installed is Niri; is there somewhere else I need to configure the sessionData.desktops field? I’ve also tried config.services.xserver.displayManager.sessionData.desktops, with similar results. A full diff is available here.

Is there a good way to check what attributes are available from config.services.displayManager.sessionData and why desktops might be missing?

Thanks for any help!

1 Like

You probably need to set services.displayManager.enable to true, to use that PR as-is.

1 Like

oops, that was it! Thanks for the quick help!

1 Like