services/unbound: create stateDir
This commit is contained in:
parent
40f3f9b11f
commit
6504f559c5
1 changed files with 9 additions and 2 deletions
|
|
@ -1,11 +1,18 @@
|
|||
{ inputs, ... }: {
|
||||
{ inputs, ... }:
|
||||
let
|
||||
dir = "/persist/unbound";
|
||||
uid = toString config.ids.uids.unbound;
|
||||
gid = toString config.ids.gids.unbound;
|
||||
in {
|
||||
networking.firewall.interfaces.wlan0 = {
|
||||
allowedUDPPorts = [ 53 ];
|
||||
allowedTCPPorts = [ 53 ];
|
||||
};
|
||||
systemd.tmpfiles.rules = [ "d ${dir} 700 ${uid} ${gid}" ];
|
||||
|
||||
services.unbound = {
|
||||
enable = true;
|
||||
stateDir = "/persist/unbound";
|
||||
stateDir = dir;
|
||||
settings = {
|
||||
forward-zone = [{
|
||||
name = ".";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue