add syncthing folder
This commit is contained in:
parent
899f39372a
commit
0ee9feb84e
1 changed files with 11 additions and 0 deletions
|
|
@ -111,6 +111,14 @@ in
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
versioning = commonVersioning;
|
versioning = commonVersioning;
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
// (lib.optionalAttrs (lib.elem "NSFW" cfg.enabledFolders) {
|
||||||
|
"Archive" = {
|
||||||
|
path = "~/NSFW";
|
||||||
|
devices = pcDevices;
|
||||||
|
ignorePerms = true;
|
||||||
|
versioning = commonVersioning;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# GUI settings with authentication
|
# GUI settings with authentication
|
||||||
|
|
@ -149,6 +157,9 @@ in
|
||||||
(lib.mkIf (lib.elem "Archive" cfg.enabledFolders) {
|
(lib.mkIf (lib.elem "Archive" cfg.enabledFolders) {
|
||||||
"Archive/.stignore".text = stignoreContent;
|
"Archive/.stignore".text = stignoreContent;
|
||||||
})
|
})
|
||||||
|
(lib.mkIf (lib.elem "NSFW" cfg.enabledFolders) {
|
||||||
|
"NSFW/.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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue