dotfiles/nixos/systems/inkbook/networking.nix

38 lines
862 B
Nix
Raw Normal View History

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