Modularize everything

This commit is contained in:
Paul-Henri Froidmont 2023-03-21 14:42:39 +01:00
parent d5cbf61286
commit 68d301c666
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
21 changed files with 536 additions and 240 deletions

View file

@ -0,0 +1,14 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.hardware.audio;
in {
options.modules.hardware.audio = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
};
}