git.iko.soy/typeable/nixpkgs
on master help sign in
unclutter: Fix default value of $DISPLAY
commitc91c3209f3dbaf9dacef69395e071a9dee59bbee authorPiotr Bogdan <ppbogdan@gmail.com> dateSun 2 Apr 2017, 19:23 (10 years ago) parenta775713
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} \