2020-10-12 00:22:58 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.tahoe-lafs = { enable = mkEnableOption "Tahoe-LAFS"; };
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.tahoe-lafs.enable {
|
2023-08-08 10:19:01 +00:00
|
|
|
assertions = [
|
|
|
|
(hm.assertions.assertPlatform "services.tahoe-lafs" pkgs platforms.linux)
|
|
|
|
];
|
|
|
|
|
2020-10-12 00:22:58 +00:00
|
|
|
systemd.user.services.tahoe-lafs = {
|
|
|
|
Unit = { Description = "Tahoe-LAFS"; };
|
|
|
|
|
|
|
|
Service = { ExecStart = "${pkgs.tahoelafs}/bin/tahoe run -C %h/.tahoe"; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|