snowflake/hosts/tsuki/services/hydroxide.nix

18 lines
458 B
Nix
Raw Normal View History

2023-09-24 20:23:56 -04:00
{pkgs, ...}: {
environment.systemPackages = [pkgs.hydroxide];
networking.firewall.allowedTCPPorts = [1025 1143];
systemd.services.hydroxide = {
enable = true;
wantedBy = ["multi-user.target"];
2023-09-24 20:23:56 -04:00
description = "A third-party, open-source ProtonMail bridge";
serviceConfig = {
User = "notoh";
ExecStart = "${pkgs.hydroxide}/bin/hydroxide -disable-carddav serve";
Restart = "always";
RestartSec = 30;
};
};
}