1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/modules/services/tahoe-lafs.nix
Austin Horstman e2ecfbf6d0 tahoe-lafs: update default package
Using old name that was changed in 2018.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-25 08:26:37 +02:00

36 lines
682 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.tahoe-lafs;
in
{
meta.maintainers = [ lib.maintainers.rycee ];
options = {
services.tahoe-lafs = {
enable = lib.mkEnableOption "Tahoe-LAFS";
package = lib.mkPackageOption pkgs "tahoe-lafs" { };
};
};
config = lib.mkIf config.services.tahoe-lafs.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.tahoe-lafs" pkgs lib.platforms.linux)
];
systemd.user.services.tahoe-lafs = {
Unit = {
Description = "Tahoe-LAFS";
};
Service = {
ExecStart = "${lib.getExe' cfg.package "tahoe"} run -C %h/.tahoe";
};
};
};
}