add taskchampion-sync-server on genepi

This commit is contained in:
2025-02-02 23:08:40 +01:00
parent 273c49410c
commit 14221b51e3
3 changed files with 17 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
./network.nix
./nginx.nix
./persistence.nix
./taskchampion.nix
inputs.home-manager.nixosModules.home-manager
{

View File

@@ -7,6 +7,7 @@ let
"grafana"
"images"
"rss"
"tw"
];
};
in

View File

@@ -0,0 +1,15 @@
{ config, ... }:
let
domain = "home.rpqt.fr";
subdomain = "tw.${domain}";
in
{
services.taskchampion-sync-server.enable = true;
services.nginx.virtualHosts.${subdomain} = {
forceSSL = true;
useACMEHost = "${domain}";
locations."/".proxyPass =
"http://127.0.0.1:${toString config.services.taskchampion-sync-server.port}";
};
}