move taskchampion persistence to its own module
This commit is contained in:
parent
c4f857b635
commit
662a7f7b9f
2 changed files with 5 additions and 3 deletions
|
|
@ -22,8 +22,6 @@
|
|||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
# tailscale
|
||||
"/var/lib/tailscale/tailscaled.state"
|
||||
# taskchampion
|
||||
"/var/lib/taskchampion-sync-server/taskchampion-sync-server.sqlite3"
|
||||
];
|
||||
users.rpqt = {
|
||||
directories = [ ];
|
||||
|
|
|
|||
|
|
@ -1,11 +1,15 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
domain = "home.rpqt.fr";
|
||||
subdomain = "tw.${domain}";
|
||||
hasImpermanence = config.environment.persistence."/persist".enable;
|
||||
in
|
||||
{
|
||||
services.taskchampion-sync-server.enable = true;
|
||||
|
||||
services.taskchampion-sync-server.dataDir =
|
||||
(lib.optionalString hasImpermanence "/persist") + "/var/lib/taskchampion-sync-server";
|
||||
|
||||
services.nginx.virtualHosts.${subdomain} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${domain}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue