2024-03-21 10:51:41 +01:00
|
|
|
{lib, ... }: {
|
|
|
|
# Enable networking with NetworkManager
|
2023-07-12 13:52:15 +02:00
|
|
|
networking = {
|
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
2024-03-22 00:27:57 +01:00
|
|
|
logLevel = "INFO";
|
2023-07-12 13:52:15 +02:00
|
|
|
};
|
2024-03-21 14:42:48 +01:00
|
|
|
|
2023-12-19 00:28:59 +01:00
|
|
|
useDHCP = lib.mkDefault true;
|
2024-03-22 00:27:57 +01:00
|
|
|
enableIPv6 = true;
|
2023-07-12 13:52:15 +02:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ ];
|
|
|
|
allowedUDPPorts = [ ];
|
|
|
|
};
|
|
|
|
};
|
2024-10-18 15:34:49 +02:00
|
|
|
|
|
|
|
# Enable NTP
|
|
|
|
services.timesyncd = {
|
|
|
|
enable = true;
|
|
|
|
servers = [
|
|
|
|
"0.nixos.pool.ntp.org"
|
|
|
|
"1.nixos.pool.ntp.org"
|
|
|
|
"2.nixos.pool.ntp.org"
|
|
|
|
"3.nixos.pool.ntp.org"
|
|
|
|
];
|
|
|
|
};
|
2024-03-20 14:59:42 +01:00
|
|
|
}
|