remove Obsidian from syncthing

This commit is contained in:
Yan Lin 2025-11-28 22:54:05 +01:00
parent 3540c92cc8
commit 7df64d809f
3 changed files with 3 additions and 14 deletions

View file

@ -12,7 +12,7 @@
# hs-specific home configuration # hs-specific home configuration
syncthing-custom = { syncthing-custom = {
enabledFolders = [ "Credentials" "Documents" "Obsidian" "Archive" "NSFW" ]; enabledFolders = [ "Credentials" "Documents" "Archive" "NSFW" ];
}; };
# yt-dlp configuration - store videos on large storage # yt-dlp configuration - store videos on large storage

View file

@ -18,7 +18,7 @@
]; ];
syncthing-custom = { syncthing-custom = {
enabledFolders = [ "Credentials" "Documents" "Obsidian" "Archive" "NSFW" ]; enabledFolders = [ "Credentials" "Documents" "Archive" "NSFW" ];
}; };
services.scheduled-commands.aicloud-backup = { services.scheduled-commands.aicloud-backup = {

View file

@ -41,7 +41,7 @@ in
options.syncthing-custom = { options.syncthing-custom = {
enabledFolders = lib.mkOption { enabledFolders = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
default = [ "Credentials" "Documents" "Obsidian" "Archive" ]; default = [ "Credentials" "Documents" "Archive" ];
description = "List of Syncthing folders to enable for this host."; description = "List of Syncthing folders to enable for this host.";
}; };
}; };
@ -98,14 +98,6 @@ in
versioning = commonVersioning; versioning = commonVersioning;
}; };
}) })
// (lib.optionalAttrs (lib.elem "Obsidian" cfg.enabledFolders) {
"Obsidian" = {
path = "~/Obsidian";
devices = pcDevices;
ignorePerms = true;
versioning = commonVersioning;
};
})
// (lib.optionalAttrs (lib.elem "Archive" cfg.enabledFolders) { // (lib.optionalAttrs (lib.elem "Archive" cfg.enabledFolders) {
"Archive" = { "Archive" = {
path = "~/Archive"; path = "~/Archive";
@ -153,9 +145,6 @@ in
(lib.mkIf (lib.elem "Documents" cfg.enabledFolders) { (lib.mkIf (lib.elem "Documents" cfg.enabledFolders) {
"Documents/.stignore".text = stignoreContent; "Documents/.stignore".text = stignoreContent;
}) })
(lib.mkIf (lib.elem "Obsidian" cfg.enabledFolders) {
"Obsidian/.stignore".text = stignoreContent;
})
(lib.mkIf (lib.elem "Archive" cfg.enabledFolders) { (lib.mkIf (lib.elem "Archive" cfg.enabledFolders) {
"Archive/.stignore".text = stignoreContent; "Archive/.stignore".text = stignoreContent;
}) })