mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Services + General] Improve GPG support (especially over SSH)
Also add SmartCard support
This commit is contained in:
parent
c64f9cb86f
commit
42bbfa7979
2 changed files with 12 additions and 0 deletions
|
|
@ -93,6 +93,13 @@ in
|
|||
documentation.man.generateCaches = true;
|
||||
|
||||
|
||||
environment.shellInit = concatStringsSep "\n" [
|
||||
''export GPG_TTY="$(tty)"''
|
||||
''gpg-connect-agent /bye''
|
||||
''export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"''
|
||||
];
|
||||
|
||||
|
||||
nixpkgs.localSystem.system = builtins.currentSystem;
|
||||
nixpkgs.localSystem.platform = lib.systems.platforms.pc // {
|
||||
gcc.arch = cfg.cpuArch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue