Compare commits

...

2 Commits

Author SHA1 Message Date
Sam W 6b46199500 gpg: enable agent 2023-07-17 01:32:22 +01:00
Sam W 0fbb31defe gpg: enable ccid on not-darwin 2023-07-17 01:03:11 +01:00
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs, lib, ...}: {
programs.gpg = { programs.gpg = {
enable = true; enable = true;
mutableKeys = false; mutableKeys = false;
@ -19,6 +19,12 @@
]; ];
# make yubikey work on macos? lolgpg # make yubikey work on macos? lolgpg
# https://github.com/NixOS/nixpkgs/issues/155629 # https://github.com/NixOS/nixpkgs/issues/155629
scdaemonSettings = {disable-ccid = true;}; scdaemonSettings = (lib.optionalAttrs pkgs.stdenv.isDarwin {disable-ccid = true;});
};
# Shouldn't have an effect on macos, on linux we need to specify a pinentry
services.gpg-agent = {
enable = true;
pinentryFlavor = "qt"; # for plasma
}; };
} }