mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
git: add git-lfs package option
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
4166d4e163
commit
2e527427b1
1 changed files with 3 additions and 1 deletions
|
|
@ -242,6 +242,8 @@ in
|
|||
lfs = {
|
||||
enable = mkEnableOption "Git Large File Storage";
|
||||
|
||||
package = lib.mkPackageOption pkgs "git-lfs" { nullable = true; };
|
||||
|
||||
skipSmudge = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
@ -506,7 +508,7 @@ in
|
|||
})
|
||||
|
||||
(mkIf cfg.lfs.enable {
|
||||
home.packages = [ pkgs.git-lfs ];
|
||||
home.packages = lib.mkIf (cfg.lfs.package != null) [ cfg.lfs.package ];
|
||||
|
||||
programs.git.iniContent.filter.lfs =
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue