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

24 lines
416 B
Nix
Raw Normal View History

2017-01-07 19:16:26 +01:00
{ config, lib, pkgs, ... }:
with lib;
{
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";
};
};
};
}