fork/home-manager

git clone https://git.julia.blue/fork/home-manager

midchildanmodules: add platform assertions17dc5939

master
518 B23 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  meta.maintainers = [ maintainers.rycee ];
7
8  options = {
9    services.tahoe-lafs = { enable = mkEnableOption "Tahoe-LAFS"; };
10  };
11
12  config = mkIf config.services.tahoe-lafs.enable {
13    assertions = [
14      (hm.assertions.assertPlatform "services.tahoe-lafs" pkgs platforms.linux)
15    ];
16
17    systemd.user.services.tahoe-lafs = {
18      Unit = { Description = "Tahoe-LAFS"; };
19
20      Service = { ExecStart = "${pkgs.tahoelafs}/bin/tahoe run -C %h/.tahoe"; };
21    };
22  };
23}