add yubikey
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
# ./ssh
|
# ./ssh
|
||||||
./tailscale
|
./tailscale
|
||||||
./syncthing
|
./syncthing
|
||||||
|
./yubikey
|
||||||
# ./sops
|
# ./sops
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
homebrew = {
|
homebrew = {
|
||||||
|
|
||||||
casks = [
|
casks = [
|
||||||
"tailscale-app"
|
"tailscale-app"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
service = "yubikey";
|
||||||
|
cfg = config.system.${service};
|
||||||
|
in {
|
||||||
|
options.system.${service} = {
|
||||||
|
enable = lib.mkEnableOption "enables ${service}";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
yubikey-personalization
|
||||||
|
yubikey-manager
|
||||||
|
yubikey-piv-tool
|
||||||
|
];
|
||||||
|
|
||||||
|
homebrew = {
|
||||||
|
casks = [
|
||||||
|
"yubico-authenticator"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user