20 lines
698 B
Nix
20 lines
698 B
Nix
{pkgs, ...}:
|
|
let # off my branch until https://github.com/NixOS/nixpkgs/pull/373934 is merged
|
|
package = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/7ebad821473c78c7cfdf17ecf9f9be91d2455d81.tar.gz") {}).owntracks-recorder;
|
|
in
|
|
{
|
|
systemd.services.owntracks-recorder = {
|
|
enable = true;
|
|
description = "owntracks-recorder Service";
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "network.target" ];
|
|
serviceConfig = {
|
|
ExecStart = "${package}/bin/ot-recorder --storage /var/lib/owntracks --port 0";
|
|
DynamicUser = true;
|
|
StateDirectory = "owntracks";
|
|
StateDirectoryMode = "0775";
|
|
WorkingDirectory = "/var/lib/owntracks";
|
|
};
|
|
};
|
|
}
|