Merge pull request #302595 from motiejus/autorandr-match-edid

nixos/autorandr: add --match-edid

authored by K900 and committed by GitHub 2704f5bb e14b0d9e

+8 -1
+8 -1
nixos/modules/services/misc/autorandr.nix
··· 260 description = lib.mdDoc "Treat outputs as connected even if their lids are closed"; 261 }; 262 263 hooks = mkOption { 264 type = hooksModule; 265 description = lib.mdDoc "Global hook scripts"; ··· 351 --batch \ 352 --change \ 353 --default ${cfg.defaultTarget} \ 354 - ${optionalString cfg.ignoreLid "--ignore-lid"} 355 ''; 356 Type = "oneshot"; 357 RemainAfterExit = false;
··· 260 description = lib.mdDoc "Treat outputs as connected even if their lids are closed"; 261 }; 262 263 + matchEdid = mkOption { 264 + default = false; 265 + type = types.bool; 266 + description = lib.mdDoc "Match displays based on edid instead of name"; 267 + }; 268 + 269 hooks = mkOption { 270 type = hooksModule; 271 description = lib.mdDoc "Global hook scripts"; ··· 357 --batch \ 358 --change \ 359 --default ${cfg.defaultTarget} \ 360 + ${optionalString cfg.ignoreLid "--ignore-lid"} \ 361 + ${optionalString cfg.matchEdid "--match-edid"} 362 ''; 363 Type = "oneshot"; 364 RemainAfterExit = false;