1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00
github.com-tboerger-nixos-c.../servers/asgard/networking.nix

26 lines
405 B
Nix
Raw Normal View History

2022-02-20 17:46:48 +01:00
{ config, lib, pkgs, ... }:
{
networking = {
hostName = "asgard";
defaultGateway = "192.168.1.1";
usePredictableInterfaceNames = false;
2022-02-20 17:46:48 +01:00
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
interfaces = {
eth0 = {
2022-02-20 17:46:48 +01:00
ipv4 = {
addresses = [{
address = "192.168.1.10";
prefixLength = 24;
}];
};
};
};
};
}