I am trying to build my nix config with i3 as a display manager.
I copied the following from the documentation:
services.xserver.displayManager.defaultSession = "none+i3";
However, if I build the configuration, nix tells me that
The option 'services.xserver.displayManager.defaultSession' defined in "..." does not exist
this is my complete config the file that should setup i3 looks like this:
{ pkgs, ... }:
{
# UI
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
services.xserver.displayManager.defaultSession = "none+i3";
services.xserver = {
enable = true;
layout = "us";
desktopManager = {
xterm.enable = false;
};
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
dmenu i3status i3lock
];
package = pkgs.i3-gaps;
};
};
}
I am aware that the option can be moved into the services.xserver
block, but I wanted to test the setting in isolation.
I'm using system.stateVersion = "20.03";
I tried searching the documentation and configuration settings, but both tell me, that the option should exist.
Could there be another error that is linked to this one?