ADD network config for d2nix

This commit is contained in:
Alexandre LUCAZEAU 2023-07-15 20:21:59 +02:00
parent 26154dbcae
commit dfd9be293c
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
{
networking = {
# useDHCP = false;
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
];
};
};
}