10 cfg = config.services.opentracker;
13 options.services.opentracker = {
14 enable = mkEnableOption "opentracker";
16 package = mkPackageOption pkgs "opentracker" { };
18 extraOptions = mkOption {
19 type = types.separatedString " ";
21 Configuration Arguments for opentracker
22 See https://erdgeist.org/arts/software/opentracker/ for all params
28 config = lib.mkIf cfg.enable {
30 systemd.services.opentracker = {
31 description = "opentracker server";
32 after = [ "network.target" ];
33 wantedBy = [ "multi-user.target" ];
34 restartIfChanged = true;
36 ExecStart = "${cfg.package}/bin/opentracker ${cfg.extraOptions}";
38 WorkingDirectory = "/var/empty";
39 # By default opentracker drops all privileges and runs in chroot after starting up as root.