2024-02-10 15:51:59 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
secret,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
in {
|
|
|
|
boot.extraModulePackages = [
|
|
|
|
(config.boot.kernelPackages.rtl8189fs.overrideAttrs (old: {
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "jwrdegoede";
|
|
|
|
repo = "rtl8189ES_linux";
|
2024-06-25 22:29:39 +02:00
|
|
|
rev = "9a82349c2c40515f9d20b9f6721670f76b4e1c7a";
|
|
|
|
hash = "sha256-AmThRe349nBPLour3oSIHEENZ7EPfX83RvS44pS7bQ4=";
|
2024-02-10 15:51:59 +01:00
|
|
|
};
|
|
|
|
}))
|
|
|
|
];
|
|
|
|
hardware = {
|
|
|
|
# needed for wlan0 to work (https://github.com/NixOS/nixpkgs/issues/115652)
|
|
|
|
enableRedistributableFirmware = pkgs.lib.mkForce false;
|
|
|
|
firmware = with pkgs; [
|
|
|
|
raspberrypiWirelessFirmware
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-06-25 22:29:39 +02:00
|
|
|
networking.wireless.iwd.enable = false;
|
|
|
|
networking.wireless.iwd.settings = {
|
|
|
|
General.EnableNetworkConfiguration = true;
|
|
|
|
};
|
|
|
|
|
2024-02-10 15:51:59 +01:00
|
|
|
networking = {
|
2024-06-25 22:29:39 +02:00
|
|
|
hostName = "inkbook";
|
2024-02-10 15:51:59 +01:00
|
|
|
useDHCP = false;
|
|
|
|
firewall.enable = true;
|
|
|
|
};
|
|
|
|
}
|