nixos-config/components/chaospott.nix

22 lines
402 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
lib,
pkgs,
...
}:
2024-06-14 18:52:15 +02:00
with lib;
{
2024-06-14 19:17:31 +02:00
options.components.chaospott.enable = mkOption {
type = lib.types.bool;
default = config.components.gui.enable;
};
config = mkIf (config.components.chaospott.enable && config.components.gui.audio.enable) {
2024-06-14 18:52:15 +02:00
hardware.pulseaudio.zeroconf.discovery.enable = true;
environment.systemPackages = with pkgs; [
paprefs
];
};
}