aboutsummaryrefslogtreecommitdiffstats
path: root/modules/vhack/ta/taskchampion-sync/module.nix
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-10-30 15:22:07 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:27:17 +0100
commit4834ad1ea13358f3f23e0139e3a8a3d1ccb804e2 (patch)
tree60b588b2d979bce6a6d19bd7acc0af05c90f12fd /modules/vhack/ta/taskchampion-sync/module.nix
parenttreewide: Various fixes (diff)
downloadnixos-server-4834ad1ea13358f3f23e0139e3a8a3d1ccb804e2.zip
modules: Rename back to `by-name`
There is no point in keeping just vhack here.
Diffstat (limited to 'modules/vhack/ta/taskchampion-sync/module.nix')
-rw-r--r--modules/vhack/ta/taskchampion-sync/module.nix66
1 files changed, 0 insertions, 66 deletions
diff --git a/modules/vhack/ta/taskchampion-sync/module.nix b/modules/vhack/ta/taskchampion-sync/module.nix
deleted file mode 100644
index a7cba30..0000000
--- a/modules/vhack/ta/taskchampion-sync/module.nix
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- config,
- lib,
- ...
-}: let
- cfg = config.vhack.taskchampion-sync;
- dataDirectory = "/var/lib/taskchampion-sync-server";
-in {
- options.vhack.taskchampion-sync = {
- enable = lib.mkEnableOption "taskchampion-sync";
-
- fqdn = lib.mkOption {
- description = "The fully qualified domain name of this instance.";
- type = lib.types.str;
- example = "task-sync.tw.online";
- };
- };
-
- config = lib.mkIf cfg.enable {
- users = {
- users.taskchampion = {
- uid = config.vhack.constants.ids.uids.taskchampion;
- group = "taskchampion";
- };
- groups.taskchampion.gid = config.vhack.constants.ids.uids.taskchampion;
- };
-
- vhack = {
- persist.directories = [
- {
- directory = dataDirectory;
- user = "taskchampion";
- group = "taskchampion";
- mode = "0700";
- }
- ];
- nginx.enable = true;
- };
-
- systemd.services.taskchampion-sync-server = {
- serviceConfig = {
- # The upstream service uses DynamicUsers, which currently poses issues to our
- # directory persisting strategy.
- User = "taskchampion";
- Group = "taskchampion";
- DynamicUser = lib.mkForce false;
- };
- };
-
- services = {
- taskchampion-sync-server = {
- enable = true;
- dataDir = dataDirectory;
- };
-
- nginx.virtualHosts."${cfg.fqdn}" = {
- locations."/" = {
- proxyPass = "http://127.0.0.1:${toString config.services.taskchampion-sync-server.port}";
- recommendedProxySettings = true;
- };
- enableACME = true;
- forceSSL = true;
- };
- };
- };
-}