mediaserver: configure nameserver
This commit is contained in:
parent
377aac56c3
commit
4dc22160a8
5 changed files with 12 additions and 10 deletions
Binary file not shown.
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -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"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue