nixos-config/configurations/host/materusPC/network.nix

19 lines
605 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-10-08 11:42:08 +02:00
{
networking.useDHCP = lib.mkDefault true;
networking.hostName = "materusPC";
networking.wireless.iwd.enable = true;
networking.networkmanager.enable = true;
2023-10-20 23:29:09 +02:00
#networking.networkmanager.wifi.backend = "iwd";
2023-10-08 11:42:08 +02:00
networking.firewall.enable = true;
2024-03-11 16:19:31 +01:00
networking.firewall.allowedTCPPorts = [ 24800 5900 5357 4656 8080 9943 9944 ];
networking.firewall.allowedUDPPorts = [ 24800 5900 3702 4656 6000 9943 9944 ];
2023-10-08 11:42:08 +02:00
#Fix warning
networking.networkmanager.extraConfig = lib.mkDefault ''
[connectivity]
uri=http://nmcheck.gnome.org/check_network_status.txt
'';
}