From d94d620d2f393e274676a619b8a56f97f0ed7524 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 26 Jun 2025 13:26:37 -0400 Subject: make system config more modular --- system/hardware.nix | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'system/hardware.nix') 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; }; } -- cgit v1.2.3-freya