mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 16:40:14 +00:00
initial refactoring
This commit is contained in:
33
platforms/nixos/modules/nmasur/presets/services/pipewire.nix
Normal file
33
platforms/nixos/modules/nmasur/presets/services/pipewire.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
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
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user