Updated networking for sampledb and media

This commit is contained in:
Random936
2024-10-31 13:23:46 -07:00
parent 0b5337ec0f
commit 1ce83d0f37
5 changed files with 53 additions and 37 deletions

23
config/networking.nix Normal file
View 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;
}
];
}