Merge pull request #15840 from anderspapitto/pulse-jack

pulseaudio service: set DISPLAY

authored by

Joachim F and committed by
GitHub
8f43f111 0fdd6309

+4 -9
+1
nixos/modules/config/pulseaudio.nix
··· 161 161 ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no"; 162 162 Restart = "on-failure"; 163 163 }; 164 + environment = { DISPLAY = ":${toString config.services.xserver.display}"; }; 164 165 }; 165 166 166 167 sockets.pulseaudio = {
+1 -1
nixos/modules/services/misc/cgminer.nix
··· 126 126 127 127 environment = { 128 128 LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib''; 129 - DISPLAY = ":0"; 129 + DISPLAY = ":${toString config.services.xserver.display}"; 130 130 GPU_MAX_ALLOC_PERCENT = "100"; 131 131 GPU_USE_SYNC_OBJECTS = "1"; 132 132 };
+1 -1
nixos/modules/services/x11/redshift.nix
··· 108 108 RestartSec = 3; 109 109 Restart = "always"; 110 110 }; 111 - environment = { DISPLAY = ":0"; }; 111 + environment = { DISPLAY = ":${toString config.services.xserver.display}"; }; 112 112 }; 113 113 }; 114 114
+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} \