From 722b99bc0eb57711c0498a86a3f55e6c69cdb05f Mon Sep 17 00:00:00 2001 From: pennae Date: Tue, 30 Aug 2022 02:30:04 +0200 Subject: nixos/*: convert options with admonitions to MD rendering changes only slightly, most changes are in spacing. --- nixos/modules/services/x11/xserver.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nixos/modules/services/x11/xserver.nix') diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 9666fe2d6f753..83a71dcf23e00 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -431,23 +431,25 @@ in firstPrimary = head heads // { primary = true; }; newHeads = singleton firstPrimary ++ tail heads; in if heads != [] && !hasPrimary then newHeads else heads; - description = '' + description = lib.mdDoc '' Multiple monitor configuration, just specify a list of XRandR outputs. The individual elements should be either simple strings or an attribute set of output options. If the element is a string, it is denoting the physical output for a monitor, if it's an attribute set, you must at least provide the - option. + {option}`output` option. The monitors will be mapped from left to right in the order of the list. By default, the first monitor will be set as the primary monitor if none of the elements contain an option that has set - to true. + {option}`primary` to `true`. - Only one monitor is allowed to be primary. + ::: {.note} + Only one monitor is allowed to be primary. + ::: Be careful using this option with multiple graphic adapters or with drivers that have poor support for XRandR, unexpected things might -- cgit 1.4.1