Add all of iogamaster modules
This commit is contained in:
32
modules/nixos/hardware/audio/default.nix
Normal file
32
modules/nixos/hardware/audio/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.frajul; let
|
||||
cfg = config.hardware.audio;
|
||||
in {
|
||||
options.hardware.audio = with types; {
|
||||
enable = mkBoolOpt false "Enable pipewire";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
wireplumber.enable = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
programs.noisetorch.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pavucontrol
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user