#2 adding basic configs still some missing

This commit is contained in:
Christoph Hollizeck 2024-03-26 14:42:36 +00:00
parent fcaa48df90
commit 19d03b20c5
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
9 changed files with 114 additions and 10 deletions

View file

@ -0,0 +1,25 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.system.hardware.audio;
in
{
options.wyrdgard.system.hardware.audio = with types; {
enable = mkBoolOpt false "Whether or not to enable audio";
};
config = mkIf cfg.enable {
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32bit = true;
pulse.enable = true;
};
};
}