tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts
This commit is contained in:
parent
23d8fd4ae6
commit
3b82d7db82
|
@ -131,7 +131,7 @@ in
|
||||||
(flip mapAttrsToList cfg.networks (network: data:
|
(flip mapAttrsToList cfg.networks (network: data:
|
||||||
flip mapAttrs' data.hosts (host: text: nameValuePair
|
flip mapAttrs' data.hosts (host: text: nameValuePair
|
||||||
("tinc/${network}/hosts/${host}")
|
("tinc/${network}/hosts/${host}")
|
||||||
({ mode = "0444"; inherit text; })
|
({ mode = "0644"; user = "tinc.${network}"; inherit text; })
|
||||||
) // {
|
) // {
|
||||||
"tinc/${network}/tinc.conf" = {
|
"tinc/${network}/tinc.conf" = {
|
||||||
mode = "0444";
|
mode = "0444";
|
||||||
|
|
Loading…
Reference in a new issue