add taskchampion-sync-server on genepi
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
./network.nix
|
./network.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./persistence.nix
|
./persistence.nix
|
||||||
|
./taskchampion.nix
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ let
|
|||||||
"grafana"
|
"grafana"
|
||||||
"images"
|
"images"
|
||||||
"rss"
|
"rss"
|
||||||
|
"tw"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
15
hosts/genepi/taskchampion.nix
Normal file
15
hosts/genepi/taskchampion.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user