nixos/privoxy: make certificate-directory optional
The tmpfiles.d rule should only be added if inspectHttps is enabled.
This commit is contained in:
parent
7008b7e015
commit
7962df46fe
@ -205,9 +205,8 @@ in
|
|||||||
|
|
||||||
users.groups.privoxy = {};
|
users.groups.privoxy = {};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = with cfg.settings; [
|
systemd.tmpfiles.rules = optional cfg.inspectHttps
|
||||||
"d ${certificate-directory} 0770 privoxy privoxy ${cfg.certsLifetime}"
|
"d ${cfg.settings.certificate-directory} 0770 privoxy privoxy ${cfg.certsLifetime}";
|
||||||
];
|
|
||||||
|
|
||||||
systemd.services.privoxy = {
|
systemd.services.privoxy = {
|
||||||
description = "Filtering web proxy";
|
description = "Filtering web proxy";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user