zaneyos/modules/core/network.nix

25 lines
470 B
Nix

{ pkgs, host, options, ... }:
{
networking = {
hostName = "${host}";
networkmanager.enable = true;
timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
59010
59011
];
allowedUDPPorts = [
59010
59011
];
};
};
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
}