Nixerus/configurations/host/materusPC/network.nix

19 lines
624 B
Nix
Raw Normal View History

2023-05-18 22:38:32 +02:00
{ config, pkgs, lib, inputs, materusFlake, ... }:
{
networking.useDHCP = lib.mkDefault true;
networking.hostName = "materusPC";
2023-07-21 00:05:29 +02:00
networking.wireless.iwd.enable = true;
2023-05-18 22:38:32 +02:00
networking.networkmanager.enable = true;
2023-07-21 00:05:29 +02:00
networking.networkmanager.wifi.backend = "iwd";
2023-05-18 22:38:32 +02:00
networking.firewall.enable = true;
2023-10-05 17:24:33 +02:00
networking.firewall.allowedTCPPorts = [ 24800 5900 5357 4656 8080 9943 9944];
networking.firewall.allowedUDPPorts = [ 24800 5900 3702 4656 6000 9943 9944];
2023-05-18 22:38:32 +02:00
#Fix warning
networking.networkmanager.extraConfig = lib.mkDefault ''
[connectivity]
uri=http://nmcheck.gnome.org/check_network_status.txt
'';
}