remove impermanence on genepi

This commit is contained in:
2025-05-25 23:10:16 +02:00
parent 03abf0c7af
commit cdc4c4e38b
4 changed files with 1 additions and 82 deletions

View File

@@ -1,15 +1,11 @@
{ config, lib, ... }:
{ config, ... }:
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}";