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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user