Merge pull request 'host sid is now nameserver' (#28) from develop into master
All checks were successful
Deploy configs / deploy-configs (push) Successful in 25s

Reviewed-on: #28
This commit is contained in:
sid 2026-04-19 00:59:08 +02:00
commit d7b20c29ea
3 changed files with 31 additions and 23 deletions

View file

@ -1,6 +1,9 @@
{ 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,9 +10,7 @@
enable = true; enable = true;
config = with constants; '' config = with constants; ''
.:53 { .:53 {
bind 127.0.0.1 ${hosts.sid.ip} bind 127.0.0.1
forward . 1.1.1.1 8.8.8.8
cache 30
hosts { hosts {
${hosts.sid.ip} ${ca-fqdn} ${hosts.sid.ip} ${ca-fqdn}
@ -24,6 +22,8 @@
${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,25 +1,30 @@
{ constants, ... }:
{ {
networking.networkmanager.ensureProfiles.profiles = { networking = {
enp34s0-profile = { nameservers = [ constants.hosts.sid.ip ];
connection = { networkmanager.ensureProfiles.profiles = {
id = "enp34s0"; enp34s0-profile = {
type = "ethernet"; connection = {
interface-name = "enp34s0"; id = "enp34s0";
type = "ethernet";
interface-name = "enp34s0";
};
ipv4 = {
method = "auto";
route-metric = 50;
};
}; };
ipv4 = { enp36s0-profile = {
method = "auto"; connection = {
route-metric = 50; id = "enp36s0";
}; type = "ethernet";
}; interface-name = "enp36s0";
enp36s0-profile = { };
connection = { ipv4 = {
id = "enp36s0"; method = "auto";
type = "ethernet"; route-metric = 200;
interface-name = "enp36s0"; };
};
ipv4 = {
method = "auto";
route-metric = 200;
}; };
}; };
}; };