diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index 1dc12ce0ff0..658a5d4e144 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -254,6 +254,14 @@ in description = "Contents of the first Device section of the X server configuration file."; }; + screenSection = mkOption { + default = ""; + example = '' + Option "RandRRotation" "on" + ''; + description = "Contents of the first Screen section of the X server configuration file."; + }; + monitorSection = mkOption { default = ""; example = "HorizSync 28-49"; @@ -485,6 +493,8 @@ in Identifier "Screen-${driver.name}[0]" Device "Device-${driver.name}[0]" + ${cfg.screenSection} + ${optionalString (cfg.defaultDepth != 0) '' DefaultDepth ${toString cfg.defaultDepth} ''}