diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-04-21 16:12:59 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-21 16:26:30 -0700 |
| commit | 27b56062b0f0966996a8aa98884e59e9c657324b (patch) | |
| tree | 1c8870d00b77f3ef0b9d3a3611dd745236284923 /modules/home | |
| parent | 355afe36ea6b70bdec74d2cdc73fd856f2389381 (diff) | |
home: add ssh key to gpg-agent
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/tools/gpg/default.nix | 2 | ||||
| -rw-r--r-- | modules/home/tools/ssh/default.nix | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/home/tools/gpg/default.nix b/modules/home/tools/gpg/default.nix index d6f6ed0..ad33d09 100644 --- a/modules/home/tools/gpg/default.nix +++ b/modules/home/tools/gpg/default.nix @@ -24,7 +24,7 @@ in { services.gpg-agent = { enable = true; - enableSshSupport = true; + pinentryPackage = (pkgs.writeShellScriptBin "pinentry-wrapper" '' if [[ -v DISPLAY ]]; then exec ${pkgs.pinentry-gnome3}/bin/pinentry-gnome3 "$@" diff --git a/modules/home/tools/ssh/default.nix b/modules/home/tools/ssh/default.nix index 10139df..fb5830c 100644 --- a/modules/home/tools/ssh/default.nix +++ b/modules/home/tools/ssh/default.nix @@ -16,5 +16,10 @@ in { }; programs.ssh.enable = true; + + services.gpg-agent = { + enableSshSupport = true; + sshKeys = [ "1DC50342548C9CAACDD88211FF51697C3622D88A" ]; + }; }; } |