In the following example, sddm
will be used as a display manager. The process is however similar for other display managers in nixpkgs and a summary that applies to all nixpkgs display managers is given at the end.
-
Systemd unit "display-manager.service" starts
services.x11.displayManager.job.execCmd
(the display manager)Code reference:
<nixpkgs>/nixos/modules/services/x11/xserver.nix
-
services.x11.displayManager.job.execCmd
is set to the path of thesddm
binary from thesddm
package in the nix store. So SDDM will start and read its configuration from/etc/sddm.conf
.