From 922e0b6ab84acb389459cafd3ac93a2dc6db0495 Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Fri, 21 Feb 2025 21:14:41 -0700 Subject: [PATCH] feat: Persist some projects for browsing --- users/crumb/default.nix | 2 ++ users/crumb/files.nix | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/users/crumb/default.nix b/users/crumb/default.nix index 182fd9c..d1cdbd1 100755 --- a/users/crumb/default.nix +++ b/users/crumb/default.nix @@ -19,6 +19,8 @@ ]; xdg.enable = true; + # Not yet in my version of HM. + # xdg.preferXdgDirectories = true; sydnix = { gpg.enable = true; diff --git a/users/crumb/files.nix b/users/crumb/files.nix index 81fab30..fd467cc 100755 --- a/users/crumb/files.nix +++ b/users/crumb/files.nix @@ -36,6 +36,8 @@ in lib.mkMerge [ # conjecture that my org files are extremely valuable with or without # Emacs. "org" + # REVIEW: I think it may be preferable to persist a few individual files + # under ~/.ssh, rather than the whole directory. ".ssh" { directory = ".local/share/Steam"; @@ -46,6 +48,18 @@ in lib.mkMerge [ }; } + { + # ~/git — other peoples' code + systemd.user.tmpfiles.rules = [ + "v ${config.home.homeDirectory}/git 755 ${config.home.username} users - -" + ]; + + sydnix.impermanence.directories = [ + "git/doomemacs" + "git/publish-org-roam-ui" + ]; + } + { ### Syncthing