Updated networking for sampledb and media
This commit is contained in:
23
config/networking.nix
Normal file
23
config/networking.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ ip_address, hostname }:
|
||||
{
|
||||
# Configure hostname.
|
||||
networking.hostName = hostname;
|
||||
|
||||
# Conigure a static IP address.
|
||||
networking.useDHCP = false;
|
||||
networking.useNetworkd= true;
|
||||
|
||||
networking.defaultGateway = {
|
||||
address = ip_address;
|
||||
interface = "enp6s18";
|
||||
};
|
||||
|
||||
networking.nameservers = [ "192.168.100.1" ];
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
networking.interfaces.enp6s18.ipv4.addresses = [
|
||||
{
|
||||
address = ip_address;
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user