rclone: respect mounts enable option

This commit is contained in:
Jess 2026-01-19 01:22:24 +13:00 committed by Austin Horstman
parent 83eeebd967
commit 9e07a347f4
2 changed files with 36 additions and 14 deletions

View file

@ -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)
)
(