diff options
author | Dany Marcoux <dmarcoux@posteo.de> | 2020-05-29 12:56:14 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-06-09 23:15:44 +0200 |
commit | c378c1cbcd405de8415c6be9d3fa15d50c0ed6ad (patch) | |
tree | 3b0c163db21345020284ae0985d7223e0bcf2ad6 /modules | |
parent | 89be0943e1be695dbffb00b48b16b0af72e7693b (diff) |
autorandr: add crtc option
This option was missing. It is generated by autorandr when executing
`autorandr --save my_profile`.
Fixes #1024
PR #1283
Diffstat (limited to 'modules')
-rw-r--r-- | modules/programs/autorandr.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/programs/autorandr.nix b/modules/programs/autorandr.nix index 37406a4bc43..40cad704db9 100644 --- a/modules/programs/autorandr.nix +++ b/modules/programs/autorandr.nix @@ -55,6 +55,13 @@ let default = true; }; + crtc = mkOption { + type = types.nullOr types.ints.unsigned; + description = "Output video display controller."; + default = null; + example = 0; + }; + primary = mkOption { type = types.bool; description = "Whether output should be marked as primary"; @@ -247,6 +254,7 @@ let if config.enable then concatStringsSep "\n" ([ "output ${name}" ] ++ optional (config.position != "") "pos ${config.position}" + ++ optional (config.crtc != null) "crtc ${toString config.crtc}" ++ optional config.primary "primary" ++ optional (config.dpi != null) "dpi ${toString config.dpi}" ++ optional (config.gamma != "") "gamma ${config.gamma}" @@ -315,6 +323,7 @@ in { eDP1.enable = false; DP1 = { enable = true; + crtc = 0; primary = true; position = "0x0"; mode = "3840x2160"; |