From 4b4de3f3feeff3e113b3555621d770aa6f17ae60 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sat, 23 May 2020 12:27:44 +0200 Subject: [PATCH] Pulseaudio doesn't play nice with symlinks --- configurations/sound.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configurations/sound.nix b/configurations/sound.nix index b8abffca..e7d0b74a 100644 --- a/configurations/sound.nix +++ b/configurations/sound.nix @@ -1,14 +1,14 @@ -{ ... }: +{ config, lib, ... }: { - custom.zfs.systemLinks = [ - { path = "/var/lib/pulse"; type = "data"; } - ]; - sound.enable = true; hardware.pulseaudio = { enable = true; - systemWide = true; + }; + + # PulseAudio doesn't play nice with symlinks + systemd.user.services.pulseaudio.environment = lib.mkIf config.custom.zfs.enable { + XDG_CONFIG_HOME = "/data/home/charlotte/.config"; }; users.users.charlotte.extraGroups = [ "audio" ];