29 lines
469 B
Nix
29 lines
469 B
Nix
{
|
|
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}
|
|
'';
|
|
};
|
|
};
|
|
}
|