From 8a62f248c37e338034d1a5a134f00033484d14bb Mon Sep 17 00:00:00 2001 From: sils Date: Thu, 16 Nov 2023 19:42:30 +0100 Subject: feat(u/sils/gpg): add silent zsh init with gpg-agent --- users/sils/gpg/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'users') diff --git a/users/sils/gpg/default.nix b/users/sils/gpg/default.nix index 49339c5..2c166d0 100644 --- a/users/sils/gpg/default.nix +++ b/users/sils/gpg/default.nix @@ -1,4 +1,8 @@ -{config, ...}: { +{ + config, + lib, + ... +}: { programs.gpg = { enable = true; homedir = "${config.xdg.dataHome}/gnupg"; @@ -9,4 +13,8 @@ enableSshSupport = true; sshKeys = ["4077454831C98FE4BE4A9C167186C5A63615B790"]; }; + programs.zsh.initExtraFirst = lib.mkBefore '' + current_tty="$(tty)" + tty() { echo "$current_tty"; } + ''; } -- cgit 1.4.1