From 59a48fc8bba4ff043ef4ed6f43b523ecda5ab133 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Thu, 24 Feb 2022 13:22:35 +0700 Subject: [PATCH] services/unbound: use u/gname instead of u/gid --- modules/services/unbound.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/services/unbound.nix b/modules/services/unbound.nix index dede06a..b053ee2 100644 --- a/modules/services/unbound.nix +++ b/modules/services/unbound.nix @@ -1,14 +1,12 @@ -{ config, 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}" ]; + systemd.tmpfiles.rules = [ "d ${dir} 700 unbound unbound" ]; services.unbound = { enable = true;