mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/sing-box: set umask 0077 when generating configuration file
This commit is contained in:
parent
8295574499
commit
e52b401a95
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ in
|
||||||
|
|
||||||
systemd.services.sing-box = {
|
systemd.services.sing-box = {
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
umask 0077
|
||||||
mkdir -p /etc/sing-box
|
mkdir -p /etc/sing-box
|
||||||
${utils.genJqSecretsReplacementSnippet cfg.settings "/etc/sing-box/config.json"}
|
${utils.genJqSecretsReplacementSnippet cfg.settings "/etc/sing-box/config.json"}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue