mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 18:16:13 +01:00
dd304b8694
Signed-off-by: magic_rb <magic_rb@redalder.org>
38 lines
862 B
Nix
38 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;
|
|
};
|
|
}
|