1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

nixos/syncthing: setup user only on system service

This commit is contained in:
Ioannis Koutras 2018-12-25 18:47:14 +02:00
parent 3fa5f623bf
commit 6642f3f213

View file

@ -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;