configuration/desktop: Enable GPG SSH support
This commit is contained in:
@@ -11,6 +11,7 @@ final: prev: {
|
||||
nixfiles-generate-config = final.callPackage ./nixfiles/nixfiles-generate-config.nix {};
|
||||
nixfiles-update-ssh-host-keys = final.callPackage ./nixfiles/nixfiles-update-ssh-host-keys.nix {};
|
||||
print-afra = final.callPackage ./print-afra {};
|
||||
ssh-gpg = final.callPackage ./ssh-gpg {};
|
||||
update-from-hydra = final.callPackage ./update-from-hydra {};
|
||||
uptimestatus = final.python3.pkgs.callPackage ./uptimestatus {};
|
||||
}
|
||||
|
6
pkgs/ssh-gpg/default.nix
Normal file
6
pkgs/ssh-gpg/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "ssh-gpg";
|
||||
text = builtins.readFile ./ssh-gpg.sh;
|
||||
}
|
6
pkgs/ssh-gpg/ssh-gpg.sh
Executable file
6
pkgs/ssh-gpg/ssh-gpg.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
export SSH_AUTH_SOCK
|
||||
|
||||
exec ssh "$@"
|
Reference in New Issue
Block a user