From d5b3fb1e553f80691552747c76b53c3e7596f41c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 12 Feb 2023 08:21:03 -0800 Subject: feat(modules/pcscd): install the pcscd daemon This is to use the yubikeys correctly --- hosts/aptos/services.nix | 3 +++ modules/services/default.nix | 1 + modules/services/pcscd/default.nix | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 modules/services/pcscd/default.nix diff --git a/hosts/aptos/services.nix b/hosts/aptos/services.nix index 1886ca7..e79bbb5 100644 --- a/hosts/aptos/services.nix +++ b/hosts/aptos/services.nix @@ -17,6 +17,9 @@ in syncthing.enable = true; + # for the yubikeys + pcscd.enable = true; + backup = { enable = true; user = "fcuny"; diff --git a/modules/services/default.nix b/modules/services/default.nix index c02468f..758a7cf 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -12,6 +12,7 @@ ./metrics-exporter ./navidrome ./nginx + ./pcscd ./prometheus ./rclone ./samba diff --git a/modules/services/pcscd/default.nix b/modules/services/pcscd/default.nix new file mode 100644 index 0000000..84a588e --- /dev/null +++ b/modules/services/pcscd/default.nix @@ -0,0 +1,11 @@ +# PCSCD management +{ config, lib, ... }: +let cfg = config.my.services.pcscd; +in +{ + options.my.services.pcscd = { + enable = lib.mkEnableOption "pcscd configuration (for yubikeys)"; + }; + + config = lib.mkIf cfg.enable { services.pcscd.enable = true; }; +} -- cgit 1.4.1