zaphyra's git: nixfiles

zaphyra's nixfiles

commit 42b821f6daa93481821e4663dc8afa4e6a5b4093
parent a21a99e5447d8190d374116c4a9335cacf8d0386
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 29 Jun 2025 15:22:21 +0200

config/home/zaphyra/programs: add `chaosctl`
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/config/home/zaphyra/programs/chaosctl.nix b/config/home/zaphyra/programs/chaosctl.nix
@@ -0,0 +1,19 @@
+{
+  config,
+  pkgs,
+  lib,
+  ...
+}:
+
+{
+
+  home.packages = [ pkgs.chaosctl ];
+
+  programs.niri.settings.binds = with config.lib.niri.actions; {
+    "Mod+Shift+D".action = spawn "${pkgs.writeShellScript "cccda-buzzer" ''
+      export SSH_AUTH_SOCK=$(${pkgs.gnupg}/bin/gpgconf --list-dirs agent-ssh-socket)
+      ${pkgs.libnotify}/bin/notify-send -e "CCCDA-Door" "$(${lib.getExe pkgs.chaosctl} door buzzer)"
+    ''}";
+  };
+
+}