modules/yubico: initialcommit

This commit is contained in:
Alejandro Soto 2025-08-06 13:57:25 -06:00
parent 5d375d1d93
commit a8ef8e43b9
No known key found for this signature in database
GPG key ID: A2C4C79764EE8F16
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{
config,
lib,
pkgs,
doctrine,
...
}:
doctrine.lib.mkModule {
inherit config;
name = "yubico";
hm = ./hm.nix;
sys = ./sys.nix;
}

9
modules/yubico/hm.nix Normal file
View file

@ -0,0 +1,9 @@
{
pkgs,
lib,
...
}: {
home.packages = [
pkgs.yubikey-manager
];
}

14
modules/yubico/sys.nix Normal file
View file

@ -0,0 +1,14 @@
{
pkgs,
lib,
...
}: {
environment.etc."pkcs11/modules/ykcs11".text = ''
module: ${pkgs.yubico-piv-tool}/lib/libykcs11.so
'';
services = {
pcscd.enable = true;
udev.packages = [pkgs.yubikey-personalization];
};
}