modules/yubico: initialcommit
This commit is contained in:
parent
5d375d1d93
commit
a8ef8e43b9
13
modules/yubico/default.nix
Normal file
13
modules/yubico/default.nix
Normal 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
9
modules/yubico/hm.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.yubikey-manager
|
||||||
|
];
|
||||||
|
}
|
14
modules/yubico/sys.nix
Normal file
14
modules/yubico/sys.nix
Normal 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];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue