syncthing: fix system service
This commit is contained in:
parent
62d11a6961
commit
24968fc1c1
@ -114,8 +114,8 @@ in
|
|||||||
|
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
systemd.services.syncthing = mkIf cfg.systemService
|
systemd.services = mkIf cfg.systemService {
|
||||||
header // {
|
syncthing = header // {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = service // {
|
serviceConfig = service // {
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
@ -124,6 +124,7 @@ in
|
|||||||
ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}";
|
ExecStart = "${cfg.package}/bin/syncthing -no-browser -home=${cfg.dataDir}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services.syncthing =
|
systemd.user.services.syncthing =
|
||||||
header // {
|
header // {
|
||||||
|
Loading…
Reference in New Issue
Block a user