From c5607ceec5495ed77b5dcd566d6732881a153fe8 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Sun, 4 Dec 2016 22:05:15 +0100 Subject: [PATCH] pulseaudio module: set cookie env variable if running in systen wide mode --- nixos/modules/config/pulseaudio.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/config/pulseaudio.nix b/nixos/modules/config/pulseaudio.nix index 06ce5200420..91daef5a19d 100644 --- a/nixos/modules/config/pulseaudio.nix +++ b/nixos/modules/config/pulseaudio.nix @@ -280,6 +280,8 @@ in { RestartSec = "500ms"; }; }; + + environment.variables.PULSE_COOKIE = "${stateDir}/.config/pulse/cookie"; }) ];