{ pkgs, lib, config, ... }: let setupScript = "${ pkgs.writeShellApplication { name = "greeter-setup-script"; runtimeInputs = [ pkgs.autorandr ]; text = '' autorandr --change ''; } }/bin/greeter-setup-script"; in { config = { services = { autorandr.enable = true; xserver.displayManager.lightdm.extraConfig = '' [Seat:*] display-setup-script = ${setupScript} ''; }; }; }