From 5c606ec29843194071422f563676d205354762d7 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 26 Oct 2017 22:05:58 +0200 Subject: [PATCH] euhadra: use systemwide pulseaudio --- common-headless.nix | 2 +- euhadra.nix | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/common-headless.nix b/common-headless.nix index ded8328..5266dec 100644 --- a/common-headless.nix +++ b/common-headless.nix @@ -73,7 +73,7 @@ users.extraUsers.gebner = { isNormalUser = true; - extraGroups = [ "wheel" "networkmanager" "transmission" ]; + extraGroups = [ "wheel" "networkmanager" "audio" "transmission" ]; # shell = "${pkgs.zsh}/bin/zsh"; password = if config.virtualisation != null then "" else null; diff --git a/euhadra.nix b/euhadra.nix index bbafe20..2fe4e46 100644 --- a/euhadra.nix +++ b/euhadra.nix @@ -30,10 +30,15 @@ network.listenAddress = "any"; musicDirectory = "/mnt/vaccaria/music"; extraConfig = '' + # audio_output { + # type "alsa" + # name "dac" + # device "sysdefault:CARD=QAMP" + # } + audio_output { - type "alsa" - name "dac" - device "sysdefault:CARD=QAMP" + type "pulse" + name "pulse" } replaygain "auto" @@ -53,6 +58,7 @@ nixpkgs.config.mpv.vaapiSupport = true; hardware.pulseaudio = { + systemWide = true; zeroconf.publish.enable = true; tcp = { enable = true;