2024-02-08 12:04:15 -05:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
environment.systemPackages = [ pkgs.hydroxide ];
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
1025
|
|
|
|
1143
|
|
|
|
];
|
2024-02-02 10:03:22 -05:00
|
|
|
|
|
|
|
systemd.services.hydroxide = {
|
|
|
|
enable = true;
|
2024-02-08 12:04:15 -05:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2024-02-02 10:03:22 -05:00
|
|
|
description = "A third-party, open-source ProtonMail bridge";
|
|
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
User = "notoh";
|
|
|
|
ExecStart = "${pkgs.hydroxide}/bin/hydroxide -disable-carddav serve";
|
|
|
|
Restart = "always";
|
|
|
|
RestartSec = 30;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|