diff --git a/components/chaospott.nix b/components/chaospott.nix index 44ccc54..02fd012 100644 --- a/components/chaospott.nix +++ b/components/chaospott.nix @@ -1,7 +1,13 @@ { config, lib, pkgs, ... }: with lib; { - config = mkIf (config.components.gui.audio.enable) { + + 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) { hardware.pulseaudio.zeroconf.discovery.enable = true; environment.systemPackages = with pkgs; [ paprefs