24 lines
522 B
Nix
24 lines
522 B
Nix
{ vacuModules, config, ... }:
|
|
let
|
|
port = 62622;
|
|
in
|
|
{
|
|
imports = [ vacuModules.hath ];
|
|
sops.secrets.hathClientKey = {
|
|
owner = config.vacu.hath.user;
|
|
restartUnits = [ "hath.service" ];
|
|
};
|
|
vacu.hath = {
|
|
enable = true;
|
|
autoStart = true;
|
|
flushLogs = true;
|
|
allowPrivilegedPort = false;
|
|
cacheDir = "/propdata/hath-cache";
|
|
credentials = {
|
|
clientId = 50751;
|
|
clientKeyPath = config.sops.secrets.hathClientKey.path;
|
|
};
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ port ];
|
|
}
|