Compare commits

..

No commits in common. "d7b20c29ea814457e487c9c05195356b6ca7c48c" and "19e8dd87044a1f29056a53f27a3771eb82e3ef3b" have entirely different histories.

3 changed files with 23 additions and 31 deletions

View file

@ -1,9 +1,6 @@
{ constants, ... }:
{ {
networking.hostName = "rx4"; networking.hostName = "rx4";
networking.domain = "sid.ovh"; networking.domain = "sid.ovh";
networking.nameservers = [ constants.hosts.sid.ip ];
# boot.kernel.sysctl = { # boot.kernel.sysctl = {
# "net.ipv4.conf.all.forwarding" = 1; # "net.ipv4.conf.all.forwarding" = 1;

View file

@ -10,7 +10,9 @@
enable = true; enable = true;
config = with constants; '' config = with constants; ''
.:53 { .:53 {
bind 127.0.0.1 bind 127.0.0.1 ${hosts.sid.ip}
forward . 1.1.1.1 8.8.8.8
cache 30
hosts { hosts {
${hosts.sid.ip} ${ca-fqdn} ${hosts.sid.ip} ${ca-fqdn}
@ -22,8 +24,6 @@
${hosts.vde.ip} vde.tail ${hosts.vde.ip} vde.tail
fallthrough fallthrough
} }
forward . 1.1.1.1 8.8.8.8
cache 30
log log
errors errors
} }

View file

@ -1,30 +1,25 @@
{ constants, ... }:
{ {
networking = { networking.networkmanager.ensureProfiles.profiles = {
nameservers = [ constants.hosts.sid.ip ]; enp34s0-profile = {
networkmanager.ensureProfiles.profiles = { connection = {
enp34s0-profile = { id = "enp34s0";
connection = { type = "ethernet";
id = "enp34s0"; interface-name = "enp34s0";
type = "ethernet";
interface-name = "enp34s0";
};
ipv4 = {
method = "auto";
route-metric = 50;
};
}; };
enp36s0-profile = { ipv4 = {
connection = { method = "auto";
id = "enp36s0"; route-metric = 50;
type = "ethernet"; };
interface-name = "enp36s0"; };
}; enp36s0-profile = {
ipv4 = { connection = {
method = "auto"; id = "enp36s0";
route-metric = 200; type = "ethernet";
}; interface-name = "enp36s0";
};
ipv4 = {
method = "auto";
route-metric = 200;
}; };
}; };
}; };