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";