Skip to content

Commit

Permalink
gpg-agent: Migrate config to home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
endocrimes committed Jan 4, 2020
1 parent 2233847 commit 80e6285
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .config/nixpkgs/modules/base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@
zsh
lm_sensors
];

services.gpg-agent = {
enable = true;

# Cache Keys for 30 mins
defaultCacheTtl = 1800; # Cache GPG Keys for 30 mins
defaultCacheTtlSsh = 1800; # Cache GPG-SSH Keys for 30 mins

# Require a key entry every two hours even if they've been used recently.
maxCacheTtl = 7200;
maxCacheTtlSsh = 7200;

enableSshSupport = true;
};
}
1 change: 1 addition & 0 deletions .gnupg/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gpg-agent.conf
2 changes: 0 additions & 2 deletions .gnupg/gpg-agent.conf

This file was deleted.

0 comments on commit 80e6285

Please sign in to comment.