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 ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no"; 162 Restart = "on-failure"; 163 }; 164 }; 165 166 sockets.pulseaudio = {
··· 161 ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no"; 162 Restart = "on-failure"; 163 }; 164 + environment = { DISPLAY = ":${toString config.services.xserver.display}"; }; 165 }; 166 167 sockets.pulseaudio = {
+1 -1
nixos/modules/services/misc/cgminer.nix
··· 126 127 environment = { 128 LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib''; 129 - DISPLAY = ":0"; 130 GPU_MAX_ALLOC_PERCENT = "100"; 131 GPU_USE_SYNC_OBJECTS = "1"; 132 };
··· 126 127 environment = { 128 LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib''; 129 + DISPLAY = ":${toString config.services.xserver.display}"; 130 GPU_MAX_ALLOC_PERCENT = "100"; 131 GPU_USE_SYNC_OBJECTS = "1"; 132 };
+1 -1
nixos/modules/services/x11/redshift.nix
··· 108 RestartSec = 3; 109 Restart = "always"; 110 }; 111 - environment = { DISPLAY = ":0"; }; 112 }; 113 }; 114
··· 108 RestartSec = 3; 109 Restart = "always"; 110 }; 111 + environment = { DISPLAY = ":${toString config.services.xserver.display}"; }; 112 }; 113 }; 114
+1 -7
nixos/modules/services/x11/unclutter.nix
··· 39 default = 1; 40 }; 41 42 - displayName = mkOption { 43 - description = "Name of the X11 display"; 44 - type = types.str; 45 - default = ":0"; 46 - }; 47 - 48 excluded = mkOption { 49 description = "Names of windows where unclutter should not apply"; 50 type = types.listOf types.str; ··· 67 serviceConfig.ExecStart = '' 68 ${cfg.package}/bin/unclutter \ 69 -idle ${toString cfg.timeout} \ 70 - -display ${cfg.displayName} \ 71 -jitter ${toString (cfg.threeshold - 1)} \ 72 ${optionalString cfg.keystroke "-keystroke"} \ 73 ${concatMapStrings (x: " -"+x) cfg.extraOptions} \
··· 39 default = 1; 40 }; 41 42 excluded = mkOption { 43 description = "Names of windows where unclutter should not apply"; 44 type = types.listOf types.str; ··· 61 serviceConfig.ExecStart = '' 62 ${cfg.package}/bin/unclutter \ 63 -idle ${toString cfg.timeout} \ 64 + -display :${toString config.services.xserver.display} \ 65 -jitter ${toString (cfg.threeshold - 1)} \ 66 ${optionalString cfg.keystroke "-keystroke"} \ 67 ${concatMapStrings (x: " -"+x) cfg.extraOptions} \