diff options
Diffstat (limited to 'system/hardware.nix')
-rw-r--r-- | system/hardware.nix | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/system/hardware.nix b/system/hardware.nix index 853a6cc..8b1ef0c 100644 --- a/system/hardware.nix +++ b/system/hardware.nix @@ -1,9 +1,21 @@ -{pkgs, ...}: { - # yubikey support - services = { - pcscd.enable = true; - udev.packages = with pkgs; [ - yubikey-personalization - ]; +{ + 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; }; } |