rclone: add autoMount option
This commit is contained in:
parent
9e07a347f4
commit
2954aa2944
2 changed files with 42 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue