[yubikey] Add module
This commit is contained in:
parent
cf34acefe0
commit
4c0cabe4ba
2 changed files with 18 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./nvidia
|
||||
./yubikey
|
||||
];
|
||||
}
|
||||
|
|
17
nixos/modules/hardware/yubikey/default.nix
Normal file
17
nixos/modules/hardware/yubikey/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.hardware.yubikey;
|
||||
in {
|
||||
options.sisyphus.hardware.yubikey.enable = lib.mkEnableOption "YubiKey support";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Enable smart card reading
|
||||
services.pcscd.enable = true;
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryFlavor = "curses";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue