From fd57d62a9286dbf037537578c5788981f32ec444 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Mon, 9 Dec 2024 14:01:59 +1000 Subject: [PATCH] updated musnix/audio config --- core/modules/audio.nix | 23 +++++++++++++---------- home/users/default.nix | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/core/modules/audio.nix b/core/modules/audio.nix index 479bbc9..da2596a 100755 --- a/core/modules/audio.nix +++ b/core/modules/audio.nix @@ -1,26 +1,23 @@ -## https://nixos.wiki/PipeWire +# # https://nixos.wiki/PipeWire ## https://github.com/musnix/musnix { ... }: { - imports = [ - ]; + imports = [ ]; ## Can't remember what this does, ## recommended to be enabled though security.rtkit.enable = true; - musnix.enable = true; - ## Not using pulse directly hardware.pulseaudio.enable = false; ## Using pipewire baybee - services.pipewire = { + services.pipewire = { enable = true; ## Uncomment if ypu(g.) want to use JACK applications - #jack.enable = true; + #jack.enable = true; pulse.enable = true; alsa = { enable = true; @@ -45,7 +42,7 @@ resample.quality = 1; }; - context.modules = [ { + context.modules = [{ name = "libpipewire-module-protocol-pulse"; args = { pulse = { @@ -54,14 +51,20 @@ max.req = "144/48000"; min.quantum = "144/48000"; max.quantum = "144/48000"; - }; }; - } ]; + }; + }]; }; }; + musnix = { + + enable = true; + + }; + }; } diff --git a/home/users/default.nix b/home/users/default.nix index e0e857f..a7af146 100755 --- a/home/users/default.nix +++ b/home/users/default.nix @@ -11,7 +11,7 @@ serenity = { description = "Serenity Amalgam"; isNormalUser = true; - extraGroups = [ "wheel" "networkmanager" "gamemode" ]; + extraGroups = [ "wheel" "networkmanager" "gamemode" "audio" ]; ## be sure to change this with 'passwd' initialPassword = "password"; ## A catgirl's favourite shell