fix(syncthing): Properly persist state dir

I'd forgot to strip the `~/` prefix from the path, causing
`/home/crumb/home/crumb/...` to persist instead of `/home/crumb/...`.
This commit is contained in:
Madeleine Sydney
2025-02-17 02:51:21 -07:00
parent 326ae2442a
commit 3ccbb5a012
2 changed files with 16 additions and 23 deletions

View File

@@ -56,7 +56,7 @@ in lib.mkMerge [
# Hack aside, this directory must be persisted to, at least
# 1. Preserve the device ID.
"${xdg-state-dir}/syncthing"
(lib.removePrefix config.home.homeDirectory "${xdg-state-dir}/syncthing")
];
services.syncthing = {