zaneyos/modules/core/network.nix

32 lines
556 B
Nix

{
pkgs,
options,
config,
...
}: let
inherit (config.zaneyos) hostName hostId;
in {
networking = {
inherit hostName;
inherit hostId;
networkmanager.enable = true;
timeServers = options.networking.timeServers.default ++ ["pool.ntp.org"];
firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
59010
59011
8080
];
allowedUDPPorts = [
59010
59011
];
};
};
environment.systemPackages = with pkgs; [networkmanagerapplet];
}