aboutsummaryrefslogtreecommitdiff
path: root/home-manager/modules/services/tahoe-lafs.nix
blob: bb7be8d7db9b57351b4750b1a9ac443e4a856ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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";
        };
    };
  };
}