From 3564def1ffe28a2c405535ebd0f79bf41d44f921 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Wed, 14 Jul 2021 00:51:09 +0200 Subject: [PATCH] audioshit --- machines/desktop.nix | 2 +- profiles/xsession/audio.nix | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/machines/desktop.nix b/machines/desktop.nix index 5052f43..39985ba 100644 --- a/machines/desktop.nix +++ b/machines/desktop.nix @@ -14,6 +14,6 @@ programs.home-manager = { enable = true; - path = "https://github.com/rycee/home-manager/archive/release-20.09.tar.gz"; + path = "https://github.com/rycee/home-manager/archive/release-21.05.tar.gz"; }; } diff --git a/profiles/xsession/audio.nix b/profiles/xsession/audio.nix index a1c1f79..b6c7577 100644 --- a/profiles/xsession/audio.nix +++ b/profiles/xsession/audio.nix @@ -1,19 +1,17 @@ {pkgs, config, lib, ...}: - +let + audio-plugins = pkgs.symlinkJoin { name = "audio-plugins"; paths = [ pkgs.lsp-plugins pkgs.speech-denoiser ];}; +in { config = lib.mkIf config.profiles.xsession.enable { - home.packages = [ - pkgs.jack2 - ] ++ lib.optionals config.profiles.gui.enable [ + home.packages = [ ] ++ lib.optionals config.profiles.gui.enable [ pkgs.pavucontrol - pkgs.qjackctl + pkgs.carla ]; - -# home.file.pulse = { -# target = ".config/pulse/client.conf"; -# text = '' -# daemon-binary=/var/run/current-system/sw/bin/pulseaudio -# ''; -# }; + + home.file."audio-plugins" = { + source = "${audio-plugins}/lib"; + target = "audio-plugins"; + }; }; }