diff --git a/components/chaospott.nix b/components/chaospott.nix new file mode 100644 index 0000000..44ccc54 --- /dev/null +++ b/components/chaospott.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: +with lib; +{ + config = mkIf (config.components.gui.audio.enable) { + hardware.pulseaudio.zeroconf.discovery.enable = true; + environment.systemPackages = with pkgs; [ + paprefs + ]; + }; +} diff --git a/components/default.nix b/components/default.nix index 87fe572..66bc65d 100644 --- a/components/default.nix +++ b/components/default.nix @@ -9,6 +9,7 @@ ./nixos ./terminal ./yubikey.nix + ./chaospott.nix ]; # some system stuff diff --git a/components/gui/audio.nix b/components/gui/audio.nix index 42f0448..be0b5ed 100644 --- a/components/gui/audio.nix +++ b/components/gui/audio.nix @@ -7,7 +7,7 @@ with lib; default = config.components.gui.enable; }; - config = mkIf (config.components.gui.pass.enable) { + config = mkIf (config.components.gui.audio.enable) { security.rtkit.enable = true;