15 lines
310 B
Nix
15 lines
310 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
net = import ../config/network.nix;
|
|
in
|
|
{
|
|
networking.interfaces.eth0.ipv4.addresses = [{
|
|
address = net.devices.self.ip;
|
|
prefixLength = net.network.cidr;
|
|
}];
|
|
|
|
networking.defaultGateway = net.network.gateway;
|
|
|
|
networking.nameservers = net.fallback_dns_servers;
|
|
}
|