mirror of
https://github.com/nix-community/home-manager
synced 2024-08-24 21:16:31 +02:00
24 lines
416 B
Nix
24 lines
416 B
Nix
|
{ 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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|