Refactor: Rename hardware.* by category
All checks were successful
check / check (push) Successful in 33s
All checks were successful
check / check (push) Successful in 33s
Fix #5
This commit is contained in:
parent
a425abee8b
commit
259cb74fd3
10 changed files with 38 additions and 15 deletions
7
modules/system/hardware/audio/default.nix
Normal file
7
modules/system/hardware/audio/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./pipewire.nix
|
||||
];
|
||||
}
|
30
modules/system/hardware/audio/pipewire.nix
Normal file
30
modules/system/hardware/audio/pipewire.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue