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

@@ -191,7 +191,7 @@ Article^W
(where the «^W» is a superscript W)
*** TODO [[https://github.com/awth13/org-appear][Hide Org-mode markup only when not editing]]
*** DONE [[https://github.com/awth13/org-appear][Hide Org-mode markup only when not editing]]
*** TODO [[https://github.com/io12/org-fragtog][Preview LaTeX fragments in Org-mode when not editing]]
@@ -277,8 +277,6 @@ CLOSED: [2025-02-02 Sun 14:06]
Seems old and broken?
**** TODO Evil stuff
**** DONE Text objects
**** DONE [[https://github.com/Malabarba/speed-of-thought-lisp][speed-of-thought]]
@@ -319,19 +317,19 @@ CLOSED: [2025-02-02 Sun 14:05]
*** TODO Eshell
**** TODO Prompt
**** DONE Prompt
**** TODO Greeting
**** DONE Greeting
**** TODO Aliases
**** DONE Aliases
**** TODO Evil
**** DONE Evil
**** TODO Project integration
**** DONE Project integration
**** TODO Syntax highlighting
**** TODO ~C-d~
**** DONE ~C-d~
*** TODO Snippets
@@ -411,9 +409,9 @@ CLOSED: [2024-11-14 Thu 04:46]
**** org-mode
***** init.org for beorg
***** DONE init.org for beorg
***** IPA links
***** KILL IPA links
***** capture templates
@@ -421,7 +419,7 @@ CLOSED: [2024-11-14 Thu 04:46]
****** todo
***** fancy headline stars
***** DONE fancy headline stars
***** DONE better colour for inline code
CLOSED: [2024-11-21 Thu 09:04]
@@ -429,11 +427,7 @@ CLOSED: [2024-11-21 Thu 09:04]
**** DONE variable pitch
CLOSED: [2024-11-30 Sat 19:06]
*** form and element text objects à la vim-sexp
*** customise the eshell prompt
*** jump to prev/next hole in haskell
*** TODO jump to prev/next hole in haskell
*** make a bind for inserting hrules
@@ -451,12 +445,13 @@ CLOSED: [2024-12-27 Fri 19:35]
Just kind of a pain in the ass. }:)
*** evil-cp fixes
*** KILL evil-cp fixes
**** [[kbd:][(]] / [[kbd:][)]]
When [[kbd:][)]] is hit whilst the cursor is at ~↓1~, it should move to the matching
bracket, ~↓2~, *not* the right bracket of the ~save-excursion~ call.
#+begin_src elisp
(save-excursion
;; ↓1 ↓2
@@ -467,9 +462,7 @@ bracket, ~↓2~, *not* the right bracket of the ~save-excursion~ call.
*** automatically close compilation buffer
*** fix =[e= / =]e=
*** unmap =TAB= in normal mode
*** TODO fix =[e= / =]e=
*** eshell trail à la M-x calc
@@ -499,7 +492,7 @@ Define ~services.syncthing.settings.devices~ as constant. Folders can still list
- [[https://rgoulter.com/blog/posts/programming/2022-02-20-using-home-manager-to-manage-symlinks-to-dotfiles.html][link]]
- [[https://www.bekk.christmas/post/2021/16/dotfiles-with-nix-and-home-manager][link]]
*** TODO Emacs
*** DONE Emacs
*** TODO Bash

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 = {