1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 17:38:33 +02:00
home-manager/modules/services/syncthing.nix

29 lines
525 B
Nix
Raw Normal View History

2017-07-17 10:10:15 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
options = {
services.syncthing = {
enable = mkEnableOption "Syncthing";
};
};
config = mkIf config.services.syncthing.enable {
systemd.user.services.syncthing = {
Unit = {
Description = "Syncthing";
After = [ "network.target" ];
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
ExecStart = "${pkgs.syncthing}/bin/syncthing -no-browser";
};
};
};
}