europa: add traygent config

This commit is contained in:
Aaron Bieber 2023-11-09 19:50:32 -07:00
parent 40c56e2b45
commit a2e85c2235
No known key found for this signature in database

View File

@ -7,6 +7,25 @@
}: }:
let let
inherit (inputs.stable.legacyPackages.${pkgs.system}) chirp; 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 { }; #myEmacs = pkgs.callPackage ../../configs/emacs.nix { };
#doom-emacs = inputs.nix-doom-emacs.packages.${pkgs.system}.default.override { #doom-emacs = inputs.nix-doom-emacs.packages.${pkgs.system}.default.override {
# doomPrivateDir = ../../configs/doom.d; # doomPrivateDir = ../../configs/doom.d;
@ -277,7 +296,8 @@ in
]; ];
environment = { environment = {
etc."barrier.conf" = { text = builtins.readFile ../../configs/barrier.conf; }; etc."barrier.conf" = { text = readFile ../../configs/barrier.conf; };
etc."traygent.json" = { text = traygentCmds; };
sessionVariables = { sessionVariables = {
XDG_BIN_HOME = "\${HOME}/.local/bin"; XDG_BIN_HOME = "\${HOME}/.local/bin";
XDG_CACHE_HOME = "\${HOME}/.cache"; XDG_CACHE_HOME = "\${HOME}/.cache";