24 lines
575 B
Nix
24 lines
575 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
coreEnabled = config.mySystem.system.core.enable or false;
|
|
in
|
|
{
|
|
options.mySystem.system.locale.enable =
|
|
lib.mkEnableOption "Services settings (printing / audio)";
|
|
|
|
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
|
|
|
# --- Services (Printing & Audio) ---
|
|
services.printing.enable = true;
|
|
services.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
}
|