summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorHenri Menke <henrimenke@gmail.com>2020-09-09 10:15:59 +1200
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2020-09-14 22:35:05 +0200
commit9d60354faee3ec42fccd724fa795ac2f64bef82d (patch)
tree2a2a702176e30a9f217c916a35d66a7aa659954b /nixos/modules
parente587b5a8a843b296ec6293bc7684fb7856773f71 (diff)
downloadnixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.tar
nixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.tar.gz
nixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.tar.bz2
nixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.tar.lz
nixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.tar.xz
nixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.tar.zst
nixpkgs-9d60354faee3ec42fccd724fa795ac2f64bef82d.zip
nixos/shadowsocks: add test without plugin
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/shadowsocks.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/shadowsocks.nix b/nixos/modules/services/networking/shadowsocks.nix
index 6009a91cbb2..d2541f9a6df 100644
--- a/nixos/modules/services/networking/shadowsocks.nix
+++ b/nixos/modules/services/networking/shadowsocks.nix
@@ -147,7 +147,7 @@ in
       description = "shadowsocks-libev Daemon";
       after = [ "network.target" ];
       wantedBy = [ "multi-user.target" ];
-      path = [ pkgs.shadowsocks-libev cfg.plugin ] ++ optional (cfg.passwordFile != null) pkgs.jq;
+      path = [ pkgs.shadowsocks-libev ] ++ optional (cfg.plugin != null) cfg.plugin ++ optional (cfg.passwordFile != null) pkgs.jq;
       serviceConfig.PrivateTmp = true;
       script = ''
         ${optionalString (cfg.passwordFile != null) ''