nixos/xserver: fix extraLayouts with displayManager.sx.enable

This commit is contained in:
figsoda 2021-09-07 18:57:37 -04:00
parent 82d19cb068
commit 9c82ab55b1
2 changed files with 4 additions and 1 deletions

@ -34,4 +34,6 @@ in {
}; };
systemd.services.display-manager.enable = false; systemd.services.display-manager.enable = false;
}; };
meta.maintainers = with maintainers; [ figsoda ];
} }

@ -166,7 +166,8 @@ in
services.xserver = { services.xserver = {
xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb"; xkbDir = "${pkgs.xkb_patched}/etc/X11/xkb";
exportConfiguration = config.services.xserver.displayManager.startx.enable; exportConfiguration = config.services.xserver.displayManager.startx.enable
|| config.services.xserver.displayManager.sx.enable;
}; };
}; };