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