From 718a1d97d1a46b1ebcc90ce0b8d74725827c20eb Mon Sep 17 00:00:00 2001 From: finn Date: Mon, 25 Sep 2023 10:16:08 +0200 Subject: [PATCH] Created Sound Configuration --- modules/hardware/sound/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/hardware/sound/default.nix diff --git a/modules/hardware/sound/default.nix b/modules/hardware/sound/default.nix new file mode 100644 index 0000000..50f9e2c --- /dev/null +++ b/modules/hardware/sound/default.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.hardware.bluetooth; +in +{ + options.my.hardware.sound = with lib; { + enable = mkEnableOption "Sound configuration"; + }; + + config = lib.mkIf cfg.enable { + sound.enable = true; + hardware.pulseaudio.enable = true; + hardware.pulseaudio.support32Bit = true; + users.extraUsers.finn.extraGroups = [ "audio" ]; + }; +} \ No newline at end of file