remove share folder
This commit is contained in:
parent
e3b77f7715
commit
7b94e64d66
1 changed files with 1 additions and 12 deletions
|
|
@ -39,7 +39,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" "Archive" "Share" ];
|
default = [ "Credentials" "Documents" "Archive" ];
|
||||||
description = "List of Syncthing folders to enable for this host.";
|
description = "List of Syncthing folders to enable for this host.";
|
||||||
};
|
};
|
||||||
enableGui = lib.mkOption {
|
enableGui = lib.mkOption {
|
||||||
|
|
@ -108,14 +108,6 @@ in
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
versioning = commonVersioning;
|
versioning = commonVersioning;
|
||||||
};
|
};
|
||||||
})
|
|
||||||
// (lib.optionalAttrs (lib.elem "Share" cfg.enabledFolders) {
|
|
||||||
"Share" = {
|
|
||||||
path = "~/Share";
|
|
||||||
devices = allDevices;
|
|
||||||
ignorePerms = true;
|
|
||||||
versioning = commonVersioning;
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
# GUI settings with authentication
|
# GUI settings with authentication
|
||||||
|
|
@ -153,9 +145,6 @@ 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 "Share" cfg.enabledFolders) {
|
|
||||||
"Share/.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