1
0
Fork 0

mediaserver: configure nameserver

This commit is contained in:
Daniel Kempkens 2023-04-19 08:04:32 +02:00
parent 377aac56c3
commit 4dc22160a8
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
5 changed files with 12 additions and 10 deletions

View file

@ -102,16 +102,6 @@ in
}; };
}; };
services.resolved.enable = false;
environment.etc."resolv.conf" = {
mode = "0644";
text = ''
search lan
nameserver 10.0.0.1
'';
};
services.journald.extraConfig = '' services.journald.extraConfig = ''
SystemMaxUse=1G SystemMaxUse=1G
''; '';

View file

@ -14,6 +14,10 @@
serviceConfig = { serviceConfig = {
NetworkNamespacePath = "/var/run/netns/wg"; NetworkNamespacePath = "/var/run/netns/wg";
BindReadOnlyPaths = [
"/etc/netns/wg/resolv.conf:/etc/resolv.conf:norbind"
"/etc/netns/wg/nsswitch.conf:/etc/nsswitch.conf:norbind"
];
}; };
}; };

View file

@ -14,6 +14,10 @@
User = "media_user"; User = "media_user";
Group = "media_group"; Group = "media_group";
NetworkNamespacePath = "/var/run/netns/wg"; NetworkNamespacePath = "/var/run/netns/wg";
BindReadOnlyPaths = [
"/etc/netns/wg/resolv.conf:/etc/resolv.conf:norbind"
"/etc/netns/wg/nsswitch.conf:/etc/nsswitch.conf:norbind"
];
ExecStart = "${pkgs.sabnzbd}/bin/sabnzbd -d -f /var/lib/sabnzbd/sabnzbd.ini"; ExecStart = "${pkgs.sabnzbd}/bin/sabnzbd -d -f /var/lib/sabnzbd/sabnzbd.ini";
}; };
}; };

View file

@ -14,6 +14,10 @@
serviceConfig = { serviceConfig = {
NetworkNamespacePath = "/var/run/netns/wg"; NetworkNamespacePath = "/var/run/netns/wg";
BindReadOnlyPaths = [
"/etc/netns/wg/resolv.conf:/etc/resolv.conf:norbind"
"/etc/netns/wg/nsswitch.conf:/etc/nsswitch.conf:norbind"
];
}; };
}; };