nixos-config/machines/chungus/service-atuin.nix
2025-02-28 05:55:33 +07:00

27 lines
608 B
Nix

{
pkgs,
config,
assets,
...
}:
{
healthchecks.http.atuin-tinc = {
url = "${config.networking.hostName}.private:${toString config.services.atuin.port}";
expectedContent = "version";
};
# healthchecks.http.atuin-wg0 = {
# url = "${config.networking.hostName}.wg0:${toString config.services.atuin.port}";
# expectedContent = "version";
# };
# networking.firewall.interfaces.wg0.allowedTCPPorts = [
# config.services.atuin.port
# ];
services.atuin = {
enable = true;
host = "0.0.0.0";
maxHistoryLength = 999999;
openRegistration = false;
};
}