summary refs log tree commit diff
path: root/nixos/modules/services/networking/syncthing.nix
diff options
context:
space:
mode:
authorIoannis Koutras <ioannis.koutras@gmail.com>2018-12-25 18:47:14 +0200
committerIoannis Koutras <ioannis.koutras@gmail.com>2019-02-06 20:23:13 +0100
commit6642f3f213a059a830538af8e03c80c7ca386280 (patch)
tree40b72eeca02d66d11405bad3d88b607ae8e90115 /nixos/modules/services/networking/syncthing.nix
parent3fa5f623bfc570d2cc7bb38f3f11cd34e40c700b (diff)
downloadnixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.tar
nixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.tar.gz
nixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.tar.bz2
nixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.tar.lz
nixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.tar.xz
nixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.tar.zst
nixpkgs-6642f3f213a059a830538af8e03c80c7ca386280.zip
nixos/syncthing: setup user only on system service
Diffstat (limited to 'nixos/modules/services/networking/syncthing.nix')
-rw-r--r--nixos/modules/services/networking/syncthing.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix
index b2ef1885a95..702481ec517 100644
--- a/nixos/modules/services/networking/syncthing.nix
+++ b/nixos/modules/services/networking/syncthing.nix
@@ -122,7 +122,7 @@ in {
 
     systemd.packages = [ pkgs.syncthing ];
 
-    users = mkIf (cfg.user == defaultUser) {
+    users = mkIf (cfg.systemService && cfg.user == defaultUser) {
       users."${defaultUser}" =
         { group = cfg.group;
           home  = cfg.dataDir;