tsuki: init hydroxide
This commit is contained in:
parent
8e99e8a719
commit
4e06370ade
2 changed files with 20 additions and 0 deletions
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./restic.nix
|
||||
./gotify-desktop.nix
|
||||
./hydroxide.nix
|
||||
];
|
||||
}
|
||||
|
|
19
hosts/tsuki/services/hydroxide.nix
Normal file
19
hosts/tsuki/services/hydroxide.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue