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