2017-01-07 19:16:26 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2017-09-26 23:40:31 +02:00
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
2017-01-07 19:16:26 +01:00
|
|
|
options = {
|
|
|
|
services.tahoe-lafs = {
|
|
|
|
enable = mkEnableOption "Tahoe-LAFS";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.tahoe-lafs.enable {
|
|
|
|
systemd.user.services.tahoe-lafs = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Tahoe-LAFS";
|
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.tahoelafs}/bin/tahoe run -C %h/.tahoe";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|