mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
26 lines
407 B
Nix
26 lines
407 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
networking = {
|
|
hostName = "yggdrasil";
|
|
defaultGateway = "192.168.1.1";
|
|
usePredictableInterfaceNames = false;
|
|
|
|
nameservers = [
|
|
"1.1.1.1"
|
|
"8.8.8.8"
|
|
];
|
|
|
|
interfaces = {
|
|
eth0 = {
|
|
ipv4 = {
|
|
addresses = [{
|
|
address = "192.168.1.5";
|
|
prefixLength = 24;
|
|
}];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|