Merge pull request #240072 from NickCao/singbox-harden

nixos/sing-box: set umask 0077 when generating configuration file
This commit is contained in:
Nick Cao 2023-06-27 20:34:18 +08:00 committed by GitHub
commit 694de8e63e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"}
'';