Update NixOS networking configuration
parent
70363bdc48
commit
b69140605c
|
@ -1,19 +1,10 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos";
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
networking.wireless = { iwd = { enable = true; }; };
|
||||||
|
networking.firewall = {
|
||||||
# Configure network proxy if necessary
|
enable = true;
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
allowedTCPPorts = [ 22 ];
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
};
|
||||||
|
|
||||||
# Enable networking
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
users.users.h = {
|
users.users.h = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "h";
|
description = "h";
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
extraGroups = [ "wheel" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue