add taskchampion-sync-server on genepi
This commit is contained in:
parent
273c49410c
commit
14221b51e3
3 changed files with 17 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
./network.nix
|
||||
./nginx.nix
|
||||
./persistence.nix
|
||||
./taskchampion.nix
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ let
|
|||
"grafana"
|
||||
"images"
|
||||
"rss"
|
||||
"tw"
|
||||
];
|
||||
};
|
||||
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}";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue