dotfiles/nixos/systems/inkbook/networking.nix
magic_rb dd304b8694
inkbook enablement work
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-06-25 22:29:39 +02:00

37 lines
862 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 = "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;
};
}