hackens-org: use networkd
This commit is contained in:
parent
e660c216de
commit
eabf2556bd
1 changed files with 14 additions and 19 deletions
|
@ -1,25 +1,20 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.interfaces.eth0 = {
|
systemd.network = {
|
||||||
ipv4.addresses = [{ address = "129.199.129.76"; prefixLength = 24; }];
|
enable = true;
|
||||||
|
networks = {
|
||||||
|
"10-uplink" = {
|
||||||
|
name = "eth0";
|
||||||
|
DHCP = "no";
|
||||||
|
address = [
|
||||||
|
"129.199.129.76/24"
|
||||||
|
];
|
||||||
|
networkConfig = {
|
||||||
|
Gateway = "129.199.129.1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
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" ];
|
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue