lol

autorandr: 1.12.1 -> 1.13, nixos/services/autorandr: add ignoreLeadOption

+15 -3
+13 -1
nixos/modules/services/misc/autorandr.nix
··· 254 254 ''; 255 255 }; 256 256 257 + ignoreLid = mkOption { 258 + default = false; 259 + type = types.bool; 260 + description = lib.mdDoc "Treat outputs as connected even if their lids are closed"; 261 + }; 262 + 257 263 hooks = mkOption { 258 264 type = hooksModule; 259 265 description = lib.mdDoc "Global hook scripts"; ··· 340 346 startLimitIntervalSec = 5; 341 347 startLimitBurst = 1; 342 348 serviceConfig = { 343 - ExecStart = "${pkgs.autorandr}/bin/autorandr --batch --change --default ${cfg.defaultTarget}"; 349 + ExecStart = '' 350 + ${pkgs.autorandr}/bin/autorandr \ 351 + --batch \ 352 + --change \ 353 + --default ${cfg.defaultTarget} \ 354 + ${optionalString cfg.ignoreLid "--ignore-lid"} 355 + ''; 344 356 Type = "oneshot"; 345 357 RemainAfterExit = false; 346 358 KillMode = "process";
+2 -2
pkgs/tools/misc/autorandr/default.nix
··· 8 8 9 9 python3.pkgs.buildPythonApplication rec { 10 10 pname = "autorandr"; 11 - version = "1.12.1"; 11 + version = "1.13"; 12 12 format = "other"; 13 13 14 14 nativeBuildInputs = [ installShellFiles ]; ··· 59 59 owner = "phillipberndt"; 60 60 repo = "autorandr"; 61 61 rev = version; 62 - sha256 = "sha256-7SNnbgV6PeseBD6wdilEIOfOL2KVDpnlkSn9SBgRhhM="; 62 + sha256 = "sha256-pTWwDKBCZV3wkX/VHuWrwMFgUAMDvik11y+ysKiN3HU="; 63 63 }; 64 64 65 65 meta = with lib; {