System Gen182 @ 2025-05-02-23:48:15 by jonas@comfy-station
This commit is contained in:
@@ -1,19 +1,32 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Include udev rules for yubikey.
|
||||
services.udev.packages = with pkgs; [
|
||||
yubikey-personalization
|
||||
];
|
||||
}: let
|
||||
cfg = config.hive.yubikey;
|
||||
in {
|
||||
options = {
|
||||
hive.yubikey.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Yubikey support.";
|
||||
};
|
||||
};
|
||||
|
||||
# OTP Manager
|
||||
environment.systemPackages = with pkgs; [
|
||||
yubioath-flutter
|
||||
];
|
||||
services.pcscd.enable = true;
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Include udev rules for yubikey.
|
||||
services.udev.packages = with pkgs; [
|
||||
yubikey-personalization
|
||||
];
|
||||
|
||||
# Enable smartcard support
|
||||
hardware.gpgSmartcards.enable = true;
|
||||
# OTP Manager
|
||||
environment.systemPackages = with pkgs; [
|
||||
yubioath-flutter
|
||||
];
|
||||
services.pcscd.enable = true;
|
||||
|
||||
# Enable smartcard support
|
||||
hardware.gpgSmartcards.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user