Display manager conflict needs a better error message

Hi all

after solving an error trying to setup i3 I was asked to report that the display manager conflict needs a better error message. The problem was that I had
services.xserver.displayManager.sddm.enable = true; and also
services.xserver.displayManager.lightdm.enable = true;
this reported the error:

error: The option `services.xserver.displayManager.job.execCmd' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/display-managers/sddm.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/display-managers/lightdm.nix'.
(use '--show-trace' to show detailed location information)
1 Like