From c3962b9738312eb488011f1f0aee780f72e8a8ef Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Fri, 21 Mar 2025 20:22:43 +0200 Subject: [PATCH] Remove outdated hardware configurations --- defaults/hardware/README.md | 4 -- defaults/hardware/nuc.nix | 33 --------------- ...0k-override-eeprom-regulatory-domain.patch | 40 ------------------- .../wle-regulatory-domain/default.nix | 23 ----------- defaults/hardware/wle200nx.nix | 11 ----- 5 files changed, 111 deletions(-) delete mode 100644 defaults/hardware/nuc.nix delete mode 100644 defaults/hardware/wle-regulatory-domain/ath10k-override-eeprom-regulatory-domain.patch delete mode 100644 defaults/hardware/wle-regulatory-domain/default.nix delete mode 100644 defaults/hardware/wle200nx.nix diff --git a/defaults/hardware/README.md b/defaults/hardware/README.md index 03a63cb..f59f745 100644 --- a/defaults/hardware/README.md +++ b/defaults/hardware/README.md @@ -9,7 +9,3 @@ To boot the nixos installer with the console port, add `console=ttyS0,115200n8` `F2`: Boot into BIOS `F11`: Select boot device - -# NUC - -- [Boot Keybindings](https://www.intel.com/content/www/us/en/support/articles/000005672/boards-and-kits/desktop-boards.html) diff --git a/defaults/hardware/nuc.nix b/defaults/hardware/nuc.nix deleted file mode 100644 index c90c220..0000000 --- a/defaults/hardware/nuc.nix +++ /dev/null @@ -1,33 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ - config, - lib, - pkgs, - modulesPath, - ... -}: - -{ - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - - boot.initrd.availableKernelModules = [ - "xhci_pci" - "ahci" - "usbhid" - "usb_storage" - "sd_mod" - "e1000e" - "virtio-pci" - ]; - boot.initrd.kernelModules = [ ]; - # boot.kernelModules = [ "kvm-intel" "virtio" "tun" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - # boot.kernelParams = [ "console=ttyS0,115200n8" ]; - - hardware.cpu.intel.updateMicrocode = true; - powerManagement.cpuFreqGovernor = "ondemand"; - nix.settings.max-jobs = lib.mkDefault 8; -} diff --git a/defaults/hardware/wle-regulatory-domain/ath10k-override-eeprom-regulatory-domain.patch b/defaults/hardware/wle-regulatory-domain/ath10k-override-eeprom-regulatory-domain.patch deleted file mode 100644 index 1b1f775..0000000 --- a/defaults/hardware/wle-regulatory-domain/ath10k-override-eeprom-regulatory-domain.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff --unified --recursive --text archlinux-linux/drivers/net/wireless/ath/regd.c archlinux-linux-patched/drivers/net/wireless/ath/regd.c ---- a/drivers/net/wireless/ath/regd.c 2019-08-29 18:31:52.749909030 +0200 -+++ b/drivers/net/wireless/ath/regd.c 2019-08-29 18:33:33.318773763 +0200 -@@ -345,6 +345,8 @@ - struct ieee80211_channel *ch; - unsigned int i; - -+ return; -+ - for (band = 0; band < NUM_NL80211_BANDS; band++) { - if (!wiphy->bands[band]) - continue; -@@ -378,6 +380,8 @@ - { - struct ieee80211_supported_band *sband; - -+ return; -+ - sband = wiphy->bands[NL80211_BAND_2GHZ]; - if (!sband) - return; -@@ -407,6 +411,8 @@ - struct ieee80211_channel *ch; - unsigned int i; - -+ return; -+ - if (!wiphy->bands[NL80211_BAND_5GHZ]) - return; - -@@ -639,6 +645,9 @@ - const struct ieee80211_regdomain *regd; - - wiphy->reg_notifier = reg_notifier; -+ -+ return 0; -+ - wiphy->regulatory_flags |= REGULATORY_STRICT_REG | - REGULATORY_CUSTOM_REG; - diff --git a/defaults/hardware/wle-regulatory-domain/default.nix b/defaults/hardware/wle-regulatory-domain/default.nix deleted file mode 100644 index fbf2cc7..0000000 --- a/defaults/hardware/wle-regulatory-domain/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -{ - boot.kernelPatches = [ - { - name = "ath10k-override-eeprom-regulatory-domain"; - patch = ./ath10k-override-eeprom-regulatory-domain.patch; - extraConfig = '' - EXPERT y - CFG80211_CERTIFICATION_ONUS y - ATH_REG_DYNAMIC_USER_REG_HINTS y - ATH_REG_DYNAMIC_USER_CERT_TESTING y - ATH_REG_DYNAMIC_USER_CERT_TESTING y - ATH9K_DFS_CERTIFIED y - ATH10K_DFS_CERTIFIED y - ''; - } - ]; -} diff --git a/defaults/hardware/wle200nx.nix b/defaults/hardware/wle200nx.nix deleted file mode 100644 index a8cf0f6..0000000 --- a/defaults/hardware/wle200nx.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -{ - services.hostapd.extraConfig = '' - ht_capab=[HT40-][HT40+][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40] - ''; -}