mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-03-10 19:18:17 +01:00
30 lines
487 B
Nix
30 lines
487 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
|
|
8080
|
|
];
|
|
allowedUDPPorts = [
|
|
59010
|
|
59011
|
|
];
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [networkmanagerapplet];
|
|
}
|