diff --git a/configurations/host/materusPC/audio.nix b/configurations/host/materusPC/audio.nix new file mode 100644 index 0000000..c46ea6c --- /dev/null +++ b/configurations/host/materusPC/audio.nix @@ -0,0 +1,60 @@ +{ pkgs, lib, ... }: +{ + + sound.enable = true; + security.rtkit.enable = true; + services.pipewire = { + enable = true; + audio.enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + systemWide = false; + jack.enable = true; + }; + hardware.pulseaudio.enable = false; + + environment.sessionVariables = let + makePluginPath = format: + (lib.makeSearchPath format [ + "$HOME/.nix-profile/lib" + "/run/current-system/sw/lib" + "/etc/profiles/per-user/$USER/lib" + ]) + + ":$HOME/.${format}"; + in + { + ALSOFT_DRIVERS = "pulse"; + + DSSI_PATH = makePluginPath "dssi"; + LADSPA_PATH = makePluginPath "ladspa"; + LV2_PATH = makePluginPath "lv2"; + LXVST_PATH = makePluginPath "lxvst"; + VST_PATH = makePluginPath "vst"; + VST3_PATH = makePluginPath "vst3"; + + }; + + services.udev = { + extraRules = '' + KERNEL=="rtc0", GROUP="audio" + KERNEL=="hpet", GROUP="audio" + ''; + }; + environment.systemPackages = with pkgs; [ + openal + pulseaudio + + reaper + + yabridge + yabridgectl + + vital + odin2 + surge + fire + + ]; + +} \ No newline at end of file diff --git a/configurations/host/materusPC/default.nix b/configurations/host/materusPC/default.nix index 1949c21..aabd2e1 100644 --- a/configurations/host/materusPC/default.nix +++ b/configurations/host/materusPC/default.nix @@ -12,6 +12,8 @@ ./network.nix ./kde.nix + + ./audio.nix ]; diff --git a/configurations/host/materusPC/tmp.nix b/configurations/host/materusPC/tmp.nix index bffc01c..9e75c8a 100644 --- a/configurations/host/materusPC/tmp.nix +++ b/configurations/host/materusPC/tmp.nix @@ -70,19 +70,7 @@ services.printing.enable = true; - sound.enable = true; - security.rtkit.enable = true; - services.pipewire = { - enable = true; - audio.enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - systemWide = false; - # If you want to use JACK applications, uncomment this - jack.enable = true; - }; - hardware.pulseaudio.enable = false; + services.xserver.libinput.enable = true; @@ -108,9 +96,7 @@ # thunderbird # ]; }; - environment.variables = { - ALSOFT_DRIVERS = "pulse"; - }; + environment.sessionVariables = { XDG_CACHE_HOME = "\${HOME}/.cache"; XDG_CONFIG_HOME = "\${HOME}/.config"; @@ -266,7 +252,6 @@ wineWowPackages.stagingFull winetricks protontricks - openal gnupg pinentry pinentry-gnome @@ -275,7 +260,7 @@ monkeysphere gparted - reaper + virt-viewer @@ -289,7 +274,7 @@ bubblewrap bindfs - pulseaudio + binutils config.materus.profile.packages.firefox