summaryrefslogtreecommitdiff
path: root/hostnix/weebnix/hardware-configuration.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2023-09-22 02:14:57 -0400
committerJoe Mou <dev@mou.fo>2023-09-22 02:14:57 -0400
commita3895623696b495433d1338969fd19853892f35b (patch)
treecf5a9b7815b07fadef4210a0902dffa2dda3839a /hostnix/weebnix/hardware-configuration.nix
parentfa8c147b7ace69eb25394edd82c1528179555553 (diff)
Switch boot loader to U-Boot
Previously was using Tianocore EDK II build with old platform firmware. Switch to NixOS SD image build, which has stock Raspberry Pi OS firmware (but missing the DTO overlays/ directory) chained into U-Boot.
Diffstat (limited to 'hostnix/weebnix/hardware-configuration.nix')
-rw-r--r--hostnix/weebnix/hardware-configuration.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/hostnix/weebnix/hardware-configuration.nix b/hostnix/weebnix/hardware-configuration.nix
index 9d3c7fa..37a06c8 100644
--- a/hostnix/weebnix/hardware-configuration.nix
+++ b/hostnix/weebnix/hardware-configuration.nix
@@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
+ boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
@@ -43,8 +43,9 @@
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
- # networking.interfaces.enabcm6e4ei0.useDHCP = lib.mkDefault true;
+ # networking.interfaces.end0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
+ powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}