[yubikey] Add module

This commit is contained in:
Tibo De Peuter 2024-03-22 21:16:12 +01:00
parent cf34acefe0
commit 4c0cabe4ba
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 18 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./nvidia ./nvidia
./yubikey
]; ];
} }

View 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";
};
};
}