From a2e85c2235536085ccd9fa1ef5fc55bcfcddf73d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 9 Nov 2023 19:50:32 -0700 Subject: [PATCH] europa: add traygent config --- hosts/europa/default.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/hosts/europa/default.nix b/hosts/europa/default.nix index 6ec309e..58277b4 100644 --- a/hosts/europa/default.nix +++ b/hosts/europa/default.nix @@ -7,6 +7,25 @@ }: let inherit (inputs.stable.legacyPackages.${pkgs.system}) chirp; + inherit (builtins) toJSON readFile; + traygentCmds = toJSON [ + { + command_path = "${pkgs.ssh-askpass-fullscreen}/bin/ssh-askpass-fullscreen"; + event = "sign"; + msg_format = "Allow access to key %q?"; + exit_code = 0; + } + { + command_path = "${pkgs.kdialog}/bin/kdialog"; + command_args = [ "--passivepopup" "SSH Key Added" "5" ]; + event = "added"; + } + { + command_path = "${pkgs.kdialog}/bin/kdialog"; + command_args = [ "--passivepopup" "SSH Key Removed" "5" ]; + event = "removed"; + } + ]; #myEmacs = pkgs.callPackage ../../configs/emacs.nix { }; #doom-emacs = inputs.nix-doom-emacs.packages.${pkgs.system}.default.override { # doomPrivateDir = ../../configs/doom.d; @@ -277,7 +296,8 @@ in ]; environment = { - etc."barrier.conf" = { text = builtins.readFile ../../configs/barrier.conf; }; + etc."barrier.conf" = { text = readFile ../../configs/barrier.conf; }; + etc."traygent.json" = { text = traygentCmds; }; sessionVariables = { XDG_BIN_HOME = "\${HOME}/.local/bin"; XDG_CACHE_HOME = "\${HOME}/.cache";