rclone: add autoMount option

This commit is contained in:
Jess 2026-01-19 13:26:39 +13:00 committed by Austin Horstman
parent 9e07a347f4
commit 2954aa2944
2 changed files with 42 additions and 1 deletions

View file

@ -113,6 +113,10 @@ in
options = {
enable = lib.mkEnableOption "this mount";
autoMount = lib.mkEnableOption "automatic mounting" // {
default = true;
};
logLevel = lib.mkOption {
type = lib.types.nullOr (
lib.types.enum [
@ -381,7 +385,7 @@ in
Restart = "on-failure";
};
Install.WantedBy = [ "default.target" ];
Install.WantedBy = lib.optional mount.autoMount "default.target";
}
)
) (lib.attrsToList remote.mounts)