diff --git a/dev/modules/_lib/default.nix b/dev/modules/_lib/default.nix index cd3c35e..aad9ff4 100644 --- a/dev/modules/_lib/default.nix +++ b/dev/modules/_lib/default.nix @@ -53,6 +53,7 @@ let url = { }; type = { }; submodules = { }; + lfs = { }; owner = { }; repo = { }; path = { }; diff --git a/docs/src/content/docs/reference/options.mdx b/docs/src/content/docs/reference/options.mdx index a86f65d..a10ba4d 100644 --- a/docs/src/content/docs/reference/options.mdx +++ b/docs/src/content/docs/reference/options.mdx @@ -35,6 +35,7 @@ Each input is declared under `flake-file.inputs.`. | `flake-file.inputs..ref` | `str` | Branch or tag pin | | `flake-file.inputs..host` | `str` | Custom host for git forges | | `flake-file.inputs..submodules` | `bool` | Whether to fetch git submodules | +| `flake-file.inputs..lfs` | `bool` | Whether to fetch with git LFS support | | `flake-file.inputs..flake` | `bool` | Is the input a flake? (default: `true`) | | `flake-file.inputs..follows` | `str` | Follow another input's resolved value | | `flake-file.inputs..inputs..follows` | `str` | Nested transitive follow | diff --git a/modules/options/inputs.nix b/modules/options/inputs.nix index 34b219e..d64517c 100644 --- a/modules/options/inputs.nix +++ b/modules/options/inputs.nix @@ -52,6 +52,11 @@ let default = null; type = lib.types.nullOr lib.types.bool; }; + lfs = lib.mkOption { + description = "Whether to checkout with git LFS support"; + default = null; + type = lib.types.nullOr lib.types.bool; + }; owner = lib.mkOption { description = "owner of the repository"; default = ""; diff --git a/modules/options/style.nix b/modules/options/style.nix index 3a2f69e..5585f65 100644 --- a/modules/options/style.nix +++ b/modules/options/style.nix @@ -51,6 +51,7 @@ in "rev" "ref" "submodules" + "lfs" "flake" "follows" "inputs"