rclone: respect mounts enable option
This commit is contained in:
parent
83eeebd967
commit
9e07a347f4
2 changed files with 36 additions and 14 deletions
|
|
@ -356,8 +356,8 @@ in
|
|||
mount-path = name;
|
||||
mount = value;
|
||||
in
|
||||
[
|
||||
(lib.nameValuePair "rclone-mount:${replaceSlashes mount-path}@${remote-name}" {
|
||||
lib.optional mount.enable (
|
||||
lib.nameValuePair "rclone-mount:${replaceSlashes mount-path}@${remote-name}" {
|
||||
Unit = {
|
||||
Description = "Rclone FUSE daemon for ${remote-name}:${mount-path}";
|
||||
};
|
||||
|
|
@ -382,8 +382,8 @@ in
|
|||
};
|
||||
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
})
|
||||
]
|
||||
}
|
||||
)
|
||||
) (lib.attrsToList remote.mounts)
|
||||
)
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue