18 lines
388 B
Nix
18 lines
388 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.plusultra;
|
|
let
|
|
cfg = config.plusultra.cli-apps.yubikey;
|
|
in
|
|
{
|
|
options.plusultra.cli-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 ];
|
|
};
|
|
}
|