1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 16:19:44 +01:00
home-manager/modules/services/tahoe-lafs.nix

20 lines
411 B
Nix
Raw Normal View History

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