From 0fbb31defe3ab38d1ea6383319a989c5b6848cf4 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Mon, 17 Jul 2023 00:58:59 +0100 Subject: [PATCH] gpg: enable ccid on not-darwin --- home/gpg.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/gpg.nix b/home/gpg.nix index 0e71bba..8e5ace2 100644 --- a/home/gpg.nix +++ b/home/gpg.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +{pkgs, lib, ...}: { programs.gpg = { enable = true; mutableKeys = false; @@ -19,6 +19,6 @@ ]; # make yubikey work on macos? lolgpg # https://github.com/NixOS/nixpkgs/issues/155629 - scdaemonSettings = {disable-ccid = true;}; + scdaemonSettings = (lib.optionalAttrs pkgs.stdenv.isDarwin {disable-ccid = true;}); }; }