diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-08-06 13:57:25 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-08-06 13:57:25 -0600 |
| commit | 6ddf84ec76f32d4e7f7bfbfbcb2595449055c7ac (patch) | |
| tree | 29aacc63a22f9d04830338c3bddc51d8350c8781 /modules | |
| parent | 31711962b9ae7985287b98a165a52c40da402f4b (diff) | |
modules/yubico: initialcommit
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/yubico/default.nix | 13 | ||||
| -rw-r--r-- | modules/yubico/hm.nix | 9 | ||||
| -rw-r--r-- | modules/yubico/sys.nix | 14 |
3 files changed, 36 insertions, 0 deletions
diff --git a/modules/yubico/default.nix b/modules/yubico/default.nix new file mode 100644 index 0000000..71bed70 --- /dev/null +++ b/modules/yubico/default.nix @@ -0,0 +1,13 @@ +{ + config, + lib, + pkgs, + doctrine, + ... +}: +doctrine.lib.mkModule { + inherit config; + name = "yubico"; + hm = ./hm.nix; + sys = ./sys.nix; +} diff --git a/modules/yubico/hm.nix b/modules/yubico/hm.nix new file mode 100644 index 0000000..8d06368 --- /dev/null +++ b/modules/yubico/hm.nix @@ -0,0 +1,9 @@ +{ + pkgs, + lib, + ... +}: { + home.packages = [ + pkgs.yubikey-manager + ]; +} diff --git a/modules/yubico/sys.nix b/modules/yubico/sys.nix new file mode 100644 index 0000000..3cd009f --- /dev/null +++ b/modules/yubico/sys.nix @@ -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]; + }; +} |
