Skip to content

Commit

Permalink
🐛 (gpg): Fixed an issue with the gpg agent
Browse files Browse the repository at this point in the history
It was not able to find a pinentry
  • Loading branch information
theobori committed Nov 1, 2024
1 parent 51d9e01 commit 49533c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
Here are a non-exhaustive list of tasks.

- [x] Use [nixcord](https://github.com/KaylorBen/nixcord) to entirely manage Discord with Nix declarations
- [x] Add a working GNOME desktop environment
- [x] Fix `gpg-agent` not finding a pinetry binary
- [ ] Better email accounts management
9 changes: 5 additions & 4 deletions modules/home/cli/programs/gpg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ in
config = mkIf cfg.enable {
home.packages = with pkgs; [ kleopatra ];

programs = {
gpg = enabled;
};
programs.gpg = enabled;

services.gpg-agent = enabled;
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
};

sops.secrets = mkIf (config."${namespace}".services.sops.enable && cfg.useSops) {
pgp_key = {
Expand Down

0 comments on commit 49533c2

Please sign in to comment.