feat: convert rossby-manage to resolved and networkd
This commit is contained in:
@@ -144,42 +144,9 @@ in {
|
||||
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
useNetworkd = true;
|
||||
hostName = name;
|
||||
interfaces.enp65s0np0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [ {
|
||||
inherit address;
|
||||
prefixLength = 24;
|
||||
} ];
|
||||
};
|
||||
# interfaces.eno2 = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [
|
||||
# {
|
||||
# inherit address;
|
||||
# prefixLength = 24;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# interfaces.ens2f1np1 = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [
|
||||
# {
|
||||
# address = "172.16.239.99";
|
||||
# prefixLength = 24;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# interfaces.ibs2f0 = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [
|
||||
# {
|
||||
# address = ipoib;
|
||||
# prefixLength = 24;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
defaultGateway = "172.16.239.1";
|
||||
# defaultGateway = "172.16.239.1";
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 6443 4725 ];
|
||||
extraCommands = ''
|
||||
@@ -194,6 +161,29 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
wait-online.enable = false;
|
||||
networks = {
|
||||
enp65s0np0 = {
|
||||
DHCP = "no";
|
||||
matchConfig.Name = "enp65s0np0";
|
||||
address = [ "${address}/24" ];
|
||||
routes = [
|
||||
{ Gateway = "172.16.239.1"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
dnssec = "false";
|
||||
fallbackDns = [
|
||||
"1.1.1.1"
|
||||
"1.0.0.1"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/exports/public" = {
|
||||
device = "/srv/public";
|
||||
|
||||
Reference in New Issue
Block a user