hosts: nasbak: switch to systemd-networkd
This commit is contained in:
parent
0b566c81be
commit
aaaa3f108f
@ -197,35 +197,24 @@
|
|||||||
|
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
||||||
|
|
||||||
|
systemd.network = {
|
||||||
|
enable = true;
|
||||||
|
networks = {
|
||||||
|
"10-lan" = {
|
||||||
|
matchConfig.Name = "enp6s18";
|
||||||
|
ntp = [ "192.168.2.1" ];
|
||||||
|
#domains = [ "home.opel-online.de" ];
|
||||||
|
networkConfig = {
|
||||||
|
DHCP = "yes";
|
||||||
|
IPv6AcceptRA = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "nasbak";
|
hostName = "nasbak";
|
||||||
domain = "home.opel-online.de";
|
domain = "home.opel-online.de";
|
||||||
networkmanager = {
|
useDHCP = false; # For versatility sake, manually edit IP on nm-applet.
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
timeServers = [
|
|
||||||
"192.168.2.1"
|
|
||||||
];
|
|
||||||
interfaces = {
|
|
||||||
enp6s18 = {
|
|
||||||
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
|
||||||
# ipv4.addresses = [ {
|
|
||||||
# address = "45.142.114.153";
|
|
||||||
# prefixLength = 24;
|
|
||||||
# } ];
|
|
||||||
# ipv6.addresses = [ {
|
|
||||||
# address = "2a00:ccc1:101:19D::2";
|
|
||||||
# prefixLength = 64;
|
|
||||||
# } ];
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# defaultGateway = "45.142.114.1";
|
|
||||||
defaultGateway6 = {
|
|
||||||
address = "fe80::1";
|
|
||||||
interface = "enp6s18";
|
|
||||||
};
|
|
||||||
# nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
|
||||||
#firewall = {
|
#firewall = {
|
||||||
# enable = false;
|
# enable = false;
|
||||||
# #allowedUDPPorts = [ 53 67 ];
|
# #allowedUDPPorts = [ 53 67 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user