mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-02-16 10:29:55 +01:00
feat: git lfs as a flake input
This commit is contained in:
parent
928f55f2fa
commit
14226a2c29
@ -12,7 +12,7 @@ The `inputs` section in `flake.nix` is an attribute set used to specify the depe
|
||||
git-example.url = "git+https://git.somehost.tld/user/path?ref=branch";
|
||||
# Archive File URL, needed in case your input use LFS.
|
||||
# Regular git input doesn't support LFS yet.
|
||||
git-example.url = "https://codeberg.org/solver-orgz/treedome/archive/master.tar.gz";
|
||||
git-example-lfs.url = "https://codeberg.org/solver-orgz/treedome/archive/master.tar.gz";
|
||||
# Similar to fetching a Git repository, but using the ssh protocol
|
||||
# with key authentication. Also uses the shallow=1 parameter
|
||||
# to avoid copying the .git directory.
|
||||
|
@ -11,6 +11,9 @@
|
||||
git-example.url = "git+https://git.somehost.tld/user/path?ref=branch";
|
||||
# 同样是拉取 Git 仓库,但使用 ssh 协议 + 密钥认证,同时使用了 shallow=1 参数避免复制 .git
|
||||
ssh-git-example.url = "git+ssh://git@github.com/ryan4yin/nix-secrets.git?shallow=1";
|
||||
# Archive File URL, needed in case your input use LFS.
|
||||
# Regular git input doesn't support LFS yet.
|
||||
git-example-lfs.url = "https://codeberg.org/solver-orgz/treedome/archive/master.tar.gz";
|
||||
# 当然也可以直接依赖本地的 git 仓库
|
||||
git-directory-example.url = "git+file:/path/to/repo?shallow=1";
|
||||
# 使用 `dir` 参数指定某个子目录
|
||||
|
Loading…
Reference in New Issue
Block a user