aboutsummaryrefslogtreecommitdiff
path: root/modules/services/tahoe-lafs.nix
blob: 742b779b270f16b5893fb72ba3fccf42fad656ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, pkgs, ... }:

with lib;

{
  meta.maintainers = [ maintainers.rycee ];

  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"; };
    };
  };
}