diff --git a/modules/nixos/music.nix b/modules/nixos/music.nix index da43581..ab1e696 100644 --- a/modules/nixos/music.nix +++ b/modules/nixos/music.nix @@ -18,5 +18,16 @@ in { kernel.packages = pkgs.linuxPackages-rt_latest; }; users.users.max.extraGroups = ["audio"]; + + sound.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + wireplumber.enable = true; + }; + security.rtkit.enable = true; }; } diff --git a/modules/nixos/sway.nix b/modules/nixos/sway.nix index 29592c0..b445c73 100644 --- a/modules/nixos/sway.nix +++ b/modules/nixos/sway.nix @@ -21,17 +21,6 @@ libnotify ]; - sound.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - jack.enable = true; - wireplumber.enable = true; - }; - security.rtkit.enable = true; - # xdg-desktop-portal works by exposing a series of D-Bus interfaces # known as portals under a well-known name # (org.freedesktop.portal.Desktop) and object path