add yubikey
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
# ./ssh
|
||||
./tailscale
|
||||
./syncthing
|
||||
./yubikey
|
||||
# ./sops
|
||||
];
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ in {
|
||||
};
|
||||
|
||||
homebrew = {
|
||||
|
||||
casks = [
|
||||
"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