.github
.vscode
docs
hydra
keys
lib
modules
autopull.nix
base.nix
boot.nix
docker.nix
endlessh.nix
fail2ban.nix
generators.nix
kub_net.nix
libs.nix
locale.nix
nix.nix
openssh.nix
pam-fingerprint-swap.nix
plocate.nix
programs.nix
update.nix
users.nix
verify.nix
yubikey.nix
pkgs
systems
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
25 lines
517 B
Nix
25 lines
517 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.adev.yubikey;
|
|
in
|
|
{
|
|
options = {
|
|
services.adev.yubikey = {
|
|
enable = lib.mkEnableOption "enable yubikey defaults";
|
|
enable-desktop-app = lib.mkEnableOption "installs desktop application";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# enable the smart card daemon for certain yubikey operations
|
|
services.pcscd.enable = true;
|
|
|
|
environment.systemPackages = lib.optionals cfg.enable-desktop-app [ pkgs.yubioath-flutter ];
|
|
};
|
|
}
|