git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24601 from pbogdan/unclutter

unclutter: Fix default value of $DISPLAY

commit149656581df421eb4773bb5719652cd19cdabb00 authorBenno Fünfstück <benno.fuenfstueck@gmail.com> dateWed 19 Apr 2017, 18:40 (10 years ago) parent12a3590c91c320
1 file changed+4−1
nixos/modules/services/x11/unclutter.nix+4−1
nixos/modules/services/x11/unclutter.nix+4−1
@@ -60,7 +60,10 @@ in {
6060 serviceConfig.ExecStart = ''
6161 ${cfg.package}/bin/unclutter \
6262 -idle ${toString cfg.timeout} \
63− -display :${toString config.services.xserver.display} \
63+ -display :${toString (
64+ let display = config.services.xserver.display;
65+ in if display != null then display else 0
66+ )} \
6467 -jitter ${toString (cfg.threeshold - 1)} \
6568 ${optionalString cfg.keystroke "-keystroke"} \
6669 ${concatMapStrings (x: " -"+x) cfg.extraOptions} \