diff options
Diffstat (limited to '')
-rw-r--r-- | users/sils/gpg/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
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"; } + ''; } |