From 5db1750d7663f96f0babb454320047af0866acf8 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Mon, 4 Nov 2024 09:59:07 +0000 Subject: [PATCH] fix(networking): default vendor and device to {} Closes #54 --- modules/nixos/networking/broadcom.nix | 12 ++++++++++-- modules/nixos/networking/intel.nix | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/modules/nixos/networking/broadcom.nix b/modules/nixos/networking/broadcom.nix index 9f62084..2c79e23 100644 --- a/modules/nixos/networking/broadcom.nix +++ b/modules/nixos/networking/broadcom.nix @@ -8,7 +8,11 @@ in full_mac.enable = mkEnableOption "Enable the Facter Broadcom Full MAC module" // { default = lib.any ( - { vendor, device, ... }: + { + vendor ? { }, + device ? { }, + ... + }: # vendor (0x14e4) Broadcom Inc. and subsidiaries (vendor.value or 0) == 5348 && (lib.elem (device.value or 0) [ @@ -36,7 +40,11 @@ in sta.enable = mkEnableOption "Enable the Facter Broadcom STA module" // { default = lib.any ( - { vendor, device, ... }: + { + vendor ? { }, + device ? { }, + ... + }: # vendor (0x14e4) Broadcom Inc. and subsidiaries (vendor.value or 0) == 5348 && (lib.elem (device.value or 0) [ diff --git a/modules/nixos/networking/intel.nix b/modules/nixos/networking/intel.nix index 5e116bd..23cddc5 100644 --- a/modules/nixos/networking/intel.nix +++ b/modules/nixos/networking/intel.nix @@ -8,7 +8,11 @@ in _2200BG.enable = mkEnableOption "Enable the Facter Intel 2200BG module" // { default = lib.any ( - { vendor, device, ... }: + { + vendor ? { }, + device ? { }, + ... + }: # vendor (0x8086) Intel Corp. (vendor.value or 0) == 32902 && (lib.elem (device.value or 0) [ @@ -26,7 +30,11 @@ in _3945ABG.enable = mkEnableOption "Enable the Facter Intel 3945ABG module" // { default = lib.any ( - { vendor, device, ... }: + { + vendor ? { }, + device ? { }, + ... + }: # vendor (0x8086) Intel Corp. (vendor.value or 0) == 32902 && (lib.elem (device.value or 0) [