frues-clan/users/pedro/home-configuration/gpg.nix
Pedro Rey Anca 7606f9e051
Some checks failed
Update `flake.lock` / update_lockfile (push) Waiting to run
Flake check / check (push) Has been cancelled
Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
2025-09-08 18:59:28 +02:00

25 lines
472 B
Nix

{
pkgs,
osConfig,
...
}: {
programs.gpg = {
enable = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
};
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
pinentry = {
package =
if osConfig.hm-pedro.de == "none"
then pkgs.pinentry-curses
else pkgs.pinentry-gnome3;
program = "pinentry-gnome3";
};
sshKeys = ["D2A3680589B81F2B07DA6CFE21DF848F1AF4E9D3"];
};
}