nixos-config/hosts/d2nix-archives/nixos/network.nix

20 lines
444 B
Nix
Raw Permalink Normal View History

2023-07-15 18:21:59 +00:00
{ config, lib, pkgs, ... }:
{
networking = {
2023-07-15 18:55:50 +00:00
hostName = "d2nix";
2023-07-15 18:21:59 +00:00
interfaces.enp0s31f6.useDHCP = true;
networkmanager.enable = true;
stevenblack.block = [ "fakenews" "gambling" "porn" ];
firewall = {
enable = true;
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
};
}