mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 22:06:00 +03:00
nixos/tests/sftpgo: fix eval
This commit is contained in:
parent
29535e40ef
commit
b854f27f47
@ -52,7 +52,7 @@ let
|
|||||||
# inside the dataprovider they will be automatically created.
|
# inside the dataprovider they will be automatically created.
|
||||||
# You have to create the folder on the filesystem yourself
|
# You have to create the folder on the filesystem yourself
|
||||||
virtual_folders =
|
virtual_folders =
|
||||||
lib.optional (lib.isMemberOf config sharedFolderName user) {
|
lib.optional (isMemberOf config sharedFolderName user) {
|
||||||
name = sharedFolderName;
|
name = sharedFolderName;
|
||||||
mapped_path = "${config.services.sftpgo.dataDir}/${sharedFolderName}";
|
mapped_path = "${config.services.sftpgo.dataDir}/${sharedFolderName}";
|
||||||
virtual_path = "/${sharedFolderName}";
|
virtual_path = "/${sharedFolderName}";
|
||||||
@ -63,7 +63,7 @@ let
|
|||||||
lib.recursiveUpdate {
|
lib.recursiveUpdate {
|
||||||
"/" = [ "list" ]; # read-only top level directory
|
"/" = [ "list" ]; # read-only top level directory
|
||||||
"/private" = [ "*" ]; # private subdirectory, not shared with others
|
"/private" = [ "*" ]; # private subdirectory, not shared with others
|
||||||
} (lib.optionalAttrs (lib.isMemberOf config "shared" user) {
|
} (lib.optionalAttrs (isMemberOf config "shared" user) {
|
||||||
"/shared" = [ "*" ];
|
"/shared" = [ "*" ];
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ let
|
|||||||
# of users and folders to import to SFTPGo.
|
# of users and folders to import to SFTPGo.
|
||||||
loadDataJson = config: pkgs.writeText "users-and-folders.json" (builtins.toJSON {
|
loadDataJson = config: pkgs.writeText "users-and-folders.json" (builtins.toJSON {
|
||||||
users =
|
users =
|
||||||
lib.mapAttrsToList (name: user: lib.generateUserAttrSet config user) (normalUsers config);
|
lib.mapAttrsToList (name: user: generateUserAttrSet config user) (normalUsers config);
|
||||||
|
|
||||||
folders = [
|
folders = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user