From 2fe6c44941e148288a58dd7ceca6792589ad75f9 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Mon, 29 Apr 2024 22:52:32 +1200 Subject: [PATCH] feat(systemModules:host): add common hardware configuration module --- system/modules/host/hardware/common/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 system/modules/host/hardware/common/default.nix diff --git a/system/modules/host/hardware/common/default.nix b/system/modules/host/hardware/common/default.nix new file mode 100644 index 0000000..84f1dc6 --- /dev/null +++ b/system/modules/host/hardware/common/default.nix @@ -0,0 +1,15 @@ +{ lib, config, ... }: + +let + inherit (lib) mkIf; + host = config.systemModules.host; +in + +{ + config = mkIf (host.type != "phone") { + hardware = { + enableRedistributableFirmware = true; + enableAllFirmware = true; + }; + }; +}