nixos/tor: add onion service unix sockets to BindPaths
Setting up an onion service with a UNIX socket with `services.tor.relay.onionServices.<name>.target.unix` didn't work out of the box because the tor service runs within an isolated root. This adds the missing path binding to make this work.
This commit is contained in:
@@ -1410,7 +1410,14 @@ in
|
||||
RootDirectoryStartOnly = true;
|
||||
#InaccessiblePaths = [ "-+${runDir}/root" ];
|
||||
UMask = "0066";
|
||||
BindPaths = [ stateDir ];
|
||||
BindPaths = [
|
||||
stateDir
|
||||
]
|
||||
++ lib.catAttrs "unix" (
|
||||
lib.catAttrs "target" (
|
||||
lib.concatMap (onionService: onionService.map) (lib.attrValues cfg.relay.onionServices)
|
||||
)
|
||||
);
|
||||
BindReadOnlyPaths = [
|
||||
builtins.storeDir
|
||||
"/etc"
|
||||
|
||||
Reference in New Issue
Block a user