25 lines
592 B
Nix
25 lines
592 B
Nix
{ pkgs, ... }:
|
|
{
|
|
networking.useDHCP = false;
|
|
networking.interfaces.eth0 = {
|
|
ipv4.addresses = [{ address = "129.199.129.76"; prefixLength = 24; }];
|
|
};
|
|
networking.defaultGateway = { address = "129.199.129.1"; interface = "eth0"; };
|
|
|
|
#systemd.network = {
|
|
# enable = true;
|
|
# networks = {
|
|
# "10-uplink" = {
|
|
# name = "eth0";
|
|
# DHCP = "no";
|
|
# address = [
|
|
# "129.199.129.76/24"
|
|
# ];
|
|
# networkConfig = {
|
|
# Gateway = "129.199.129.1";
|
|
# };
|
|
# };
|
|
# };
|
|
#};
|
|
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
|
}
|