Compare commits
3 commits
19e8dd8704
...
d7b20c29ea
| Author | SHA1 | Date | |
|---|---|---|---|
| d7b20c29ea | |||
| bca37c6ed7 | |||
| 91db9e4626 |
3 changed files with 31 additions and 23 deletions
|
|
@ -1,6 +1,9 @@
|
|||
{ constants, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "rx4";
|
||||
networking.domain = "sid.ovh";
|
||||
networking.nameservers = [ constants.hosts.sid.ip ];
|
||||
|
||||
# boot.kernel.sysctl = {
|
||||
# "net.ipv4.conf.all.forwarding" = 1;
|
||||
|
|
|
|||
|
|
@ -10,9 +10,7 @@
|
|||
enable = true;
|
||||
config = with constants; ''
|
||||
.:53 {
|
||||
bind 127.0.0.1 ${hosts.sid.ip}
|
||||
forward . 1.1.1.1 8.8.8.8
|
||||
cache 30
|
||||
bind 127.0.0.1
|
||||
hosts {
|
||||
${hosts.sid.ip} ${ca-fqdn}
|
||||
|
||||
|
|
@ -24,6 +22,8 @@
|
|||
${hosts.vde.ip} vde.tail
|
||||
fallthrough
|
||||
}
|
||||
forward . 1.1.1.1 8.8.8.8
|
||||
cache 30
|
||||
log
|
||||
errors
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,30 @@
|
|||
{ constants, ... }:
|
||||
|
||||
{
|
||||
networking.networkmanager.ensureProfiles.profiles = {
|
||||
enp34s0-profile = {
|
||||
connection = {
|
||||
id = "enp34s0";
|
||||
type = "ethernet";
|
||||
interface-name = "enp34s0";
|
||||
networking = {
|
||||
nameservers = [ constants.hosts.sid.ip ];
|
||||
networkmanager.ensureProfiles.profiles = {
|
||||
enp34s0-profile = {
|
||||
connection = {
|
||||
id = "enp34s0";
|
||||
type = "ethernet";
|
||||
interface-name = "enp34s0";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
route-metric = 50;
|
||||
};
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
route-metric = 50;
|
||||
};
|
||||
};
|
||||
enp36s0-profile = {
|
||||
connection = {
|
||||
id = "enp36s0";
|
||||
type = "ethernet";
|
||||
interface-name = "enp36s0";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
route-metric = 200;
|
||||
enp36s0-profile = {
|
||||
connection = {
|
||||
id = "enp36s0";
|
||||
type = "ethernet";
|
||||
interface-name = "enp36s0";
|
||||
};
|
||||
ipv4 = {
|
||||
method = "auto";
|
||||
route-metric = 200;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue