tsuki: init hydroxide

This commit is contained in:
notohh 2023-09-24 20:23:56 -04:00
parent 8e99e8a719
commit 4e06370ade
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 20 additions and 0 deletions

View file

@ -2,5 +2,6 @@
imports = [
./restic.nix
./gotify-desktop.nix
./hydroxide.nix
];
}

View file

@ -0,0 +1,19 @@
{pkgs, ...}: {
environment.systemPackages = [pkgs.hydroxide];
networking.firewall.allowedTCPPorts = [1025 1143];
systemd.services.hydroxide = {
enable = true;
wantedBy = [
"multi-user.target"
];
description = "A third-party, open-source ProtonMail bridge";
serviceConfig = {
User = "notoh";
ExecStart = "${pkgs.hydroxide}/bin/hydroxide -disable-carddav serve";
Restart = "always";
RestartSec = 30;
};
};
}