nixos/sing-box: set umask 0077 when generating configuration file

This commit is contained in:
Nick Cao 2023-06-27 16:08:55 +08:00
parent 8295574499
commit e52b401a95
No known key found for this signature in database

View file

@ -56,6 +56,7 @@ in
systemd.services.sing-box = {
preStart = ''
umask 0077
mkdir -p /etc/sing-box
${utils.genJqSecretsReplacementSnippet cfg.settings "/etc/sing-box/config.json"}
'';