summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2018-10-23 00:43:41 +0200
committerGitHub <noreply@github.com>2018-10-23 00:43:41 +0200
commitab5380ec82f4740bef1cc522674c49917a8d1f44 (patch)
tree8b8f111db28546d391e3dfcc2b903d94c65b3771 /nixos/modules/services/networking
parentf76a9eb52674e6f8941a774954dc5ba3f1faceae (diff)
downloadnixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.tar
nixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.tar.gz
nixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.tar.bz2
nixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.tar.lz
nixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.tar.xz
nixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.tar.zst
nixlib-ab5380ec82f4740bef1cc522674c49917a8d1f44.zip
nixos/ddclient: make configFile private
/run/ddclient/ddclient.conf should be installed in mode 660 (readable and writeable only by ddclient.service user and group)
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/ddclient.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ddclient.nix b/nixos/modules/services/networking/ddclient.nix
index 77a9af058c7c..a70967820b32 100644
--- a/nixos/modules/services/networking/ddclient.nix
+++ b/nixos/modules/services/networking/ddclient.nix
@@ -185,7 +185,7 @@ with lib;
         RuntimeDirectoryMode = "0750";
         StateDirectory = builtins.baseNameOf dataDir;
         Type = "oneshot";
-        ExecStartPre = "!${lib.getBin pkgs.coreutils}/bin/install -m666 ${cfg.configFile} /run/${RuntimeDirectory}/ddclient.conf";
+        ExecStartPre = "!${lib.getBin pkgs.coreutils}/bin/install -m660 ${cfg.configFile} /run/${RuntimeDirectory}/ddclient.conf";
         ExecStart = "${lib.getBin pkgs.ddclient}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
       };
     };