feat(nixos): enable hardware security key support (pcscd)
Some checks failed
Check / eval (push) Has been cancelled

This commit is contained in:
Bernardo Magri
2026-07-08 22:07:12 +01:00
parent eb8f9fad88
commit c6b759e19e
3 changed files with 12 additions and 7 deletions

View File

@@ -123,6 +123,10 @@ in
services.dbus.enable = lib.mkDefault true;
services.upower.enable = lib.mkDefault true;
# Hardware security key (FIDO2/U2F/GPG) support. Without pcscd, tokens like
# YubiKeys often silently fail in WebAuthn (browsers), SSH, and GPG.
services.pcscd.enable = lib.mkDefault true;
# Firmware updates via LVFS. Ships the daemon + its metadata-refresh
# timer only — it never flashes anything on its own; applying an update
# is an explicit `fwupdmgr update`. On by default as desktop security
@@ -248,7 +252,7 @@ in
# Background filesystem health checks. Scans all BTRFS filesystems to detect
# and (if RAID/dup) correct bitrot before it propagates.
services.btrfs.autoScrub = {
services.btrfs.autoScrub = lib.mkIf ((config.fileSystems."/".fsType or "") == "btrfs") {
enable = lib.mkDefault true;
interval = lib.mkDefault "monthly";
};