mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 10:36:12 +01:00
ee7fee6595
Signed-off-by: magic_rb <magic_rb@redalder.org>
34 lines
768 B
Nix
34 lines
768 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
secret,
|
|
config,
|
|
...
|
|
}: let
|
|
in {
|
|
boot.extraModulePackages = [
|
|
(config.boot.kernelPackages.rtl8189fs.overrideAttrs (old: {
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "jwrdegoede";
|
|
repo = "rtl8189ES_linux";
|
|
rev = "75a566a830037c7d1309c5a9fe411562772a1cf2";
|
|
hash = "sha256-7/I9pxzaT9+An/ElFavsQFEWU/Mfn0X4S7ovDbrwu1c=";
|
|
};
|
|
}))
|
|
];
|
|
hardware = {
|
|
# needed for wlan0 to work (https://github.com/NixOS/nixpkgs/issues/115652)
|
|
enableRedistributableFirmware = pkgs.lib.mkForce false;
|
|
firmware = with pkgs; [
|
|
raspberrypiWirelessFirmware
|
|
];
|
|
};
|
|
|
|
networking = {
|
|
hostName = "grasshopper";
|
|
useDHCP = false;
|
|
interfaces.eth0.useDHCP = true;
|
|
firewall.enable = true;
|
|
};
|
|
}
|