1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01:00

Add syncthing service

This commit is contained in:
Utku Demir 2017-07-17 08:10:15 +00:00 committed by Robert Helgesson
parent 7a18a0fb34
commit dd5061d73b
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86
2 changed files with 29 additions and 0 deletions

View file

@ -32,6 +32,7 @@ let
./services/network-manager-applet.nix ./services/network-manager-applet.nix
./services/random-background.nix ./services/random-background.nix
./services/redshift.nix ./services/redshift.nix
./services/syncthing.nix
./services/taffybar.nix ./services/taffybar.nix
./services/tahoe-lafs.nix ./services/tahoe-lafs.nix
./services/udiskie.nix ./services/udiskie.nix

View file

@ -0,0 +1,28 @@
{ 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";
};
};
};
}