1 { config, lib, pkgs, ... }:
5 cfg = config.services.opentracker;
7 options.services.opentracker = {
8 enable = mkEnableOption "opentracker";
10 package = mkPackageOption pkgs "opentracker" { };
12 extraOptions = mkOption {
13 type = types.separatedString " ";
15 Configuration Arguments for opentracker
16 See https://erdgeist.org/arts/software/opentracker/ for all params
22 config = lib.mkIf cfg.enable {
24 systemd.services.opentracker = {
25 description = "opentracker server";
26 after = [ "network.target" ];
27 wantedBy = [ "multi-user.target" ];
28 restartIfChanged = true;
30 ExecStart = "${cfg.package}/bin/opentracker ${cfg.extraOptions}";
32 WorkingDirectory = "/var/empty";
33 # By default opentracker drops all privileges and runs in chroot after starting up as root.