From 66df64ad34603206dfd78aae42078042168d8a96 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 14 Jun 2024 18:52:15 +0200 Subject: [PATCH] Add chaospott.nix --- components/chaospott.nix | 10 ++++++++++ components/default.nix | 1 + components/gui/audio.nix | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 components/chaospott.nix 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;