mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 08:10:42 +00:00
Add sound support
This commit is contained in:
parent
130fdae4bf
commit
fb603938c1
6 changed files with 160 additions and 0 deletions
17
system/shared/multimedia/sound/default.nix
Normal file
17
system/shared/multimedia/sound/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkDefault;
|
||||
cfg = config.myOptions.system.sound;
|
||||
in {
|
||||
imports = [ ./pipewire.nix ];
|
||||
config = mkIf cfg.enable {
|
||||
sound = {
|
||||
enable = mkDefault false; # this just enables ALSA, which we don't really care abouyt
|
||||
mediaKeys.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue