nixcfg/modules/nixos/apps/yubikey/default.nix
2024-01-11 10:31:04 +00:00

18 lines
383 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.apps.yubikey;
in
{
options.plusultra.apps.yubikey = with types; {
enable = mkBoolOpt false "Whether or not to enable Yubikey.";
};
config = mkIf cfg.enable {
services.yubikey-agent.enable = true;
environment.systemPackages = with pkgs; [ yubikey-manager-qt ];
};
}