24 lines
339 B
Nix
24 lines
339 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [];
|
|
|
|
networking = {
|
|
networkmanager = {
|
|
enable = true;
|
|
wifi.powersave = false;
|
|
};
|
|
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 4242 ];
|
|
allowedUDPPorts = [ 4242 ];
|
|
};
|
|
};
|
|
|
|
boot.extraModprobeConfig = ''
|
|
options iwlwifi power_save=0
|
|
'';
|
|
}
|