2019-04-19 03:11:51 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
with lib;
|
|
|
|
|
let cfg = config.niveum.seafile;
|
|
|
|
|
in {
|
|
|
|
|
options.niveum.seafile = {
|
|
|
|
|
enable = mkEnableOption "Seafile";
|
|
|
|
|
};
|
|
|
|
|
|
2019-12-08 22:37:16 +01:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
systemd.user.services.seafile = {
|
2019-06-08 14:57:22 +02:00
|
|
|
description = "Seafile synchronisation service";
|
2019-12-08 22:37:16 +01:00
|
|
|
after = [ "network.target" ];
|
|
|
|
|
wantedBy = [ "default.target" ];
|
2019-06-08 14:57:22 +02:00
|
|
|
script = "${pkgs.seafile-client}/bin/seafile-applet";
|
|
|
|
|
};
|
2019-04-19 03:11:51 +02:00
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
|
|
|
|
|
};
|
|
|
|
|
}
|