nixos-configs/modules/hardware/audio.nix

24 lines
465 B
Nix
Raw Normal View History

2023-03-21 14:42:39 +01:00
{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.hardware.audio;
in {
options.modules.hardware.audio = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
sound.enable = true;
2024-06-23 02:36:51 +02:00
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
};
2023-03-21 23:02:30 +01:00
home-manager.users.${config.user.name} = {
home.packages = with pkgs.unstable; [ pulsemixer ];
};
2023-03-21 14:42:39 +01:00
};
}