From 03b6ee17c2f123d2986a7ab32b62192e5367490f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 14 Jun 2024 19:17:31 +0200 Subject: [PATCH] update chaospott.nix --- components/chaospott.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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