mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 09:52:03 +00:00
34 lines
613 B
Nix
34 lines
613 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.nmasur.presets.services.pipewire;
|
||
|
in
|
||
|
|
||
|
{
|
||
|
|
||
|
options.nmasur.presets.services.pipewire.enable = lib.mkEnableOption "Pipewire audio system";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
# Enable PipeWire
|
||
|
services.pipewire = {
|
||
|
enable = true;
|
||
|
pulse.enable = true;
|
||
|
};
|
||
|
|
||
|
# Provides audio source with background noise filtered
|
||
|
programs.noisetorch.enable = true;
|
||
|
|
||
|
# These aren't necessary, but helpful for the user
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
pamixer # Audio control
|
||
|
volnoti # Volume notifications
|
||
|
];
|
||
|
};
|
||
|
}
|