System Gen182 @ 2025-05-02-23:48:15 by jonas@comfy-station

This commit is contained in:
2025-05-02 23:48:16 +02:00
parent 87db9887c2
commit 7add5e0db6
23 changed files with 302 additions and 247 deletions

View File

@@ -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;
};
}