Refactor: Rename hardware.* by category
All checks were successful
check / check (push) Successful in 33s

Fix #5
This commit is contained in:
Florian RICHER 2025-01-29 21:56:40 +01:00
parent a425abee8b
commit 259cb74fd3
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
10 changed files with 38 additions and 15 deletions

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./pipewire.nix
];
}

View file

@ -0,0 +1,30 @@
{ config, lib, ... }:
with lib;
let
cfg = config.modules.system.hardware.audio.pipewire;
in
{
options.modules.system.hardware.audio.pipewire = {
enable = mkEnableOption ''
Enable pipewire with my custom configurations
'';
};
config = mkIf cfg.enable {
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
};
}