From 8d4f7fd9b7f1fa36a48d1c6996015429b90b9edb Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 9 Jan 2013 22:34:19 +0100 Subject: mmrnmhrm: Provide fixed default XRandR properties. In my case this is just dual head for this machine. Synergy is not yet added to the NixOS configuration, but this is in preparation for it to work. Signed-off-by: aszlig --- machines/mmrnmhrm.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'machines/mmrnmhrm.nix') diff --git a/machines/mmrnmhrm.nix b/machines/mmrnmhrm.nix index c4fb98ca..21bef953 100644 --- a/machines/mmrnmhrm.nix +++ b/machines/mmrnmhrm.nix @@ -51,5 +51,23 @@ with pkgs.lib; label = "swap"; }; - services.xserver.videoDrivers = [ "nouveau" ]; + services.xserver = { + videoDrivers = [ "nouveau" ]; + + deviceSection = '' + Option "monitor-DVI-I-2" "left monitor" + Option "monitor-DVI-I-1" "right monitor" + ''; + + extraXorgOptions = '' + Section "Monitor" + Identifier "left monitor" + EndSection + + Section "Monitor" + Identifier "right monitor" + Option "RightOf" "left monitor" + EndSection + ''; + }; } -- cgit 1.4.1