moved
This commit is contained in:
parent
de4b14a35d
commit
37346c49e0
23 changed files with 12 additions and 39 deletions
31
hosts/modules/net.nix
Normal file
31
hosts/modules/net.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
networkmanagerapplet
|
||||
wget
|
||||
curl
|
||||
cloudflared
|
||||
nmap
|
||||
httpie
|
||||
socat
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [57621];
|
||||
networking.firewall.allowedUDPPorts = [5353];
|
||||
|
||||
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
||||
networking.hostName = "nixos";
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
networking.firewall.enable = false;
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Disable NetworkManager-wait-online to fix boot hang
|
||||
systemd.services."NetworkManager-wait-online".enable = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue