minor
This commit is contained in:
parent
932f3f16f7
commit
8049e5548a
1 changed files with 1 additions and 31 deletions
|
|
@ -2,21 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.syncthing-custom;
|
cfg = config.syncthing-custom;
|
||||||
|
|
||||||
# Common ignore patterns for all synced folders
|
|
||||||
commonIgnores = [
|
|
||||||
"*.tmp"
|
|
||||||
"*.temp"
|
|
||||||
".*.swp"
|
|
||||||
".*.swo"
|
|
||||||
".Trash"
|
|
||||||
".Trash-*"
|
|
||||||
"Thumbs.db"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Convert ignore list to .stignore file content
|
|
||||||
stignoreContent = lib.concatStringsSep "\n" commonIgnores;
|
|
||||||
|
|
||||||
# Device groupings
|
# Device groupings
|
||||||
pcDevices = [ "macbook" "imac" "thinkpad" "nfss" ];
|
pcDevices = [ "macbook" "imac" "thinkpad" "nfss" ];
|
||||||
touchDevices = [ "iphone" "ipad" ];
|
touchDevices = [ "iphone" "ipad" ];
|
||||||
|
|
@ -150,22 +136,6 @@ in
|
||||||
config.RunAtLoad = true;
|
config.RunAtLoad = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Deploy .stignore files to synced folders (only for enabled folders)
|
|
||||||
home.file = lib.mkMerge [
|
|
||||||
(lib.mkIf (lib.elem "Credentials" cfg.enabledFolders) {
|
|
||||||
"Credentials/.stignore".text = stignoreContent;
|
|
||||||
})
|
|
||||||
(lib.mkIf (lib.elem "Documents" cfg.enabledFolders) {
|
|
||||||
"Documents/.stignore".text = stignoreContent;
|
|
||||||
})
|
|
||||||
(lib.mkIf (lib.elem "Media" cfg.enabledFolders) {
|
|
||||||
"Media/.stignore".text = stignoreContent;
|
|
||||||
})
|
|
||||||
(lib.mkIf (lib.elem "Archive" cfg.enabledFolders) {
|
|
||||||
"Archive/.stignore".text = stignoreContent;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
# For NixOS systems, we need to add Syncthing as a manual service in Traefik
|
# For NixOS systems, we need to add Syncthing as a manual service in Traefik
|
||||||
# Since Syncthing runs as a systemd service (not container), we'll handle routing via static config
|
# Since Syncthing runs as a systemd service (not container), we'll handle routing via static config
|
||||||
# or create a container wrapper for it to use with service discovery
|
# or create a container wrapper for it to use with service discovery
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue