diff --git a/SwarselSystems.org b/SwarselSystems.org index ec8d20b..409c370 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -4621,7 +4621,6 @@ Also, the system state version is set here. No need to touch it. "${profilesPath}/common/nixos/gc.nix" "${profilesPath}/common/nixos/store.nix" "${profilesPath}/common/nixos/time.nix" - "${profilesPath}/common/nixos/pipewire.nix" "${profilesPath}/common/nixos/users.nix" "${profilesPath}/common/nixos/nix-ld.nix" ./settings.nix @@ -4636,6 +4635,7 @@ Also, the system state version is set here. No need to touch it. ./spotifyd.nix ./mpd.nix ./matrix.nix + ./pipewire.nix ./nextcloud.nix ./immich.nix ./paperless.nix @@ -5144,6 +5144,31 @@ Also, the system state version is set here. No need to touch it. } #+end_src +**** pipewire + +#+begin_src nix :tangle profiles/server/nixos/pipewire.nix + { lib, config, ... }: + { + config = lib.mkIf (config.swarselsystems.server.mpd || config.swarselsystems.server.navidrome) { + + security.rtkit.enable = true; # this is required for pipewire real-time access + + services.pipewire = { + enable = true; + pulse.enable = true; + jack.enable = true; + audio.enable = true; + wireplumber.enable = true; + alsa = { + enable = true; + support32Bit = true; + }; + }; + }; + + } +#+end_src + **** matrix :PROPERTIES: :CUSTOM_ID: h:1e68d84a-8f99-422f-89ac-78f664ac0013 diff --git a/profiles/server/nixos/default.nix b/profiles/server/nixos/default.nix index 09c9109..2cd2b72 100644 --- a/profiles/server/nixos/default.nix +++ b/profiles/server/nixos/default.nix @@ -10,7 +10,6 @@ in "${profilesPath}/common/nixos/gc.nix" "${profilesPath}/common/nixos/store.nix" "${profilesPath}/common/nixos/time.nix" - "${profilesPath}/common/nixos/pipewire.nix" "${profilesPath}/common/nixos/users.nix" "${profilesPath}/common/nixos/nix-ld.nix" ./settings.nix @@ -25,6 +24,7 @@ in ./spotifyd.nix ./mpd.nix ./matrix.nix + ./pipewire.nix ./nextcloud.nix ./immich.nix ./paperless.nix diff --git a/profiles/server/nixos/pipewire.nix b/profiles/server/nixos/pipewire.nix new file mode 100644 index 0000000..0234335 --- /dev/null +++ b/profiles/server/nixos/pipewire.nix @@ -0,0 +1,20 @@ +{ lib, config, ... }: +{ + config = lib.mkIf (config.swarselsystems.server.mpd || config.swarselsystems.server.navidrome) { + + security.rtkit.enable = true; # this is required for pipewire real-time access + + services.pipewire = { + enable = true; + pulse.enable = true; + jack.enable = true; + audio.enable = true; + wireplumber.enable = true; + alsa = { + enable = true; + support32Bit = true; + }; + }; + }; + +}