mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-22 21:05:44 +08:00
feat(nix-darwin): add requirePcscd option for consistency
Add the requirePcscd option to the nix-darwin module for consistency with NixOS and home-manager modules. On macOS, CryptoTokenKit typically handles YubiKey communication automatically, but this option is provided for API consistency.
This commit is contained in:
parent
33119dd52c
commit
b96d73924b
1 changed files with 16 additions and 0 deletions
|
|
@ -316,6 +316,22 @@ in
|
|||
List of plugins to use for sops decryption.
|
||||
'';
|
||||
};
|
||||
|
||||
# Options for hardware key support (YubiKey, FIDO2, etc.)
|
||||
requirePcscd = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether pcscd (PC/SC Smart Card Daemon) is required for age decryption.
|
||||
Enable this when using hardware key plugins like age-plugin-yubikey
|
||||
or age-plugin-fido2-hmac.
|
||||
|
||||
On macOS, the system's built-in smart card services (CryptoTokenKit)
|
||||
typically handle YubiKey communication automatically. This option
|
||||
is provided for consistency with Linux but may not require additional
|
||||
configuration on macOS.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
gnupg = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue