2023-09-04 20:46:32 +00:00
|
|
|
{...}: {
|
|
|
|
config = {
|
|
|
|
programs.gpg.enable = true;
|
2023-09-05 18:03:03 +00:00
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
2023-09-07 01:05:30 +00:00
|
|
|
|
|
|
|
enableSshSupport = true;
|
|
|
|
sshKeys = ["A0B5D579ECACC45C51B2B38E317D346182083CD8"];
|
|
|
|
|
2023-09-05 18:03:03 +00:00
|
|
|
maxCacheTtl = 86400; # 1 Day
|
2023-09-07 01:05:30 +00:00
|
|
|
maxCacheTtlSsh = 86400; # 1 Day
|
2023-09-05 18:03:03 +00:00
|
|
|
};
|
2023-09-07 01:05:30 +00:00
|
|
|
|
|
|
|
# Disable gnome-keyring-ssh for gpg-agent to work
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/101616
|
|
|
|
xdg.configFile."autostart/gnome-keyring-ssh.desktop".text = ''
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
|
|
|
Hidden=true
|
|
|
|
'';
|
2023-09-04 20:46:32 +00:00
|
|
|
};
|
|
|
|
}
|