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 260 description = lib.mdDoc "Treat outputs as connected even if their lids are closed"; 261 261 }; 262 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 + 263 269 hooks = mkOption { 264 270 type = hooksModule; 265 271 description = lib.mdDoc "Global hook scripts"; ··· 351 357 --batch \ 352 358 --change \ 353 359 --default ${cfg.defaultTarget} \ 354 - ${optionalString cfg.ignoreLid "--ignore-lid"} 360 + ${optionalString cfg.ignoreLid "--ignore-lid"} \ 361 + ${optionalString cfg.matchEdid "--match-edid"} 355 362 ''; 356 363 Type = "oneshot"; 357 364 RemainAfterExit = false;