unclutter: respect xserver.display variable

+1 -7
+1 -7
nixos/modules/services/x11/unclutter.nix
··· 39 39 default = 1; 40 40 }; 41 41 42 - displayName = mkOption { 43 - description = "Name of the X11 display"; 44 - type = types.str; 45 - default = ":0"; 46 - }; 47 - 48 42 excluded = mkOption { 49 43 description = "Names of windows where unclutter should not apply"; 50 44 type = types.listOf types.str; ··· 67 61 serviceConfig.ExecStart = '' 68 62 ${cfg.package}/bin/unclutter \ 69 63 -idle ${toString cfg.timeout} \ 70 - -display ${cfg.displayName} \ 64 + -display :${toString config.services.xserver.display} \ 71 65 -jitter ${toString (cfg.threeshold - 1)} \ 72 66 ${optionalString cfg.keystroke "-keystroke"} \ 73 67 ${concatMapStrings (x: " -"+x) cfg.extraOptions} \