From bda3a111ff66080acba08e69bdeba652ffa50290 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 20 Aug 2023 12:22:49 +0200 Subject: [PATCH] Begin add pipewire --- hosts/nixos-test/default.nix | 1 + modules/pipewire.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/pipewire.nix diff --git a/hosts/nixos-test/default.nix b/hosts/nixos-test/default.nix index 47f77cb..ba0bc0d 100644 --- a/hosts/nixos-test/default.nix +++ b/hosts/nixos-test/default.nix @@ -8,6 +8,7 @@ imports = [ ../../modules/system.nix + ../../modules/pipewire.nix # Include the results of the hardware scan. ./hardware-configuration.nix diff --git a/modules/pipewire.nix b/modules/pipewire.nix new file mode 100644 index 0000000..769671c --- /dev/null +++ b/modules/pipewire.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: + +{ + sound.enabled = true; + services = { + pipewire = { + enable = true; + audio.enable = true; + pulse.enable = true; + alsa = { + enable = true; + support32Bit = true; + }; + wireplumber.enable = true; + jack.enable = true; + }; + }; +} \ No newline at end of file