mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
19 lines
411 B
Nix
19 lines
411 B
Nix
{ 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"; };
|
|
};
|
|
};
|
|
}
|