summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/misc/autorandr.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/misc/autorandr.nix')
-rw-r--r--nixos/modules/services/misc/autorandr.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/autorandr.nix b/nixos/modules/services/misc/autorandr.nix
index aa96acb61306..22d1fb727477 100644
--- a/nixos/modules/services/misc/autorandr.nix
+++ b/nixos/modules/services/misc/autorandr.nix
@@ -260,6 +260,12 @@ in {
description = lib.mdDoc "Treat outputs as connected even if their lids are closed";
};
+ matchEdid = mkOption {
+ default = false;
+ type = types.bool;
+ description = lib.mdDoc "Match displays based on edid instead of name";
+ };
+
hooks = mkOption {
type = hooksModule;
description = lib.mdDoc "Global hook scripts";
@@ -351,7 +357,8 @@ in {
--batch \
--change \
--default ${cfg.defaultTarget} \
- ${optionalString cfg.ignoreLid "--ignore-lid"}
+ ${optionalString cfg.ignoreLid "--ignore-lid"} \
+ ${optionalString cfg.matchEdid "--match-edid"}
'';
Type = "oneshot";
RemainAfterExit = false;