summaryrefslogtreecommitdiff
path: root/system/hardware.nix
blob: 8b1ef0c5ae1cb44cfa536b0dd0aaec4eebdf0eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  lib,
  config,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
in {
  config = mkIf (!config.minimal) {
    # yubikey support
    services = {
      pcscd.enable = true;
      udev.packages = with pkgs; [
        yubikey-personalization
      ];
    };

    # firmware
    services.fwupd.enable = true;
  };
}