mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46: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 = {
|
lfs = {
|
||||||
enable = mkEnableOption "Git Large File Storage";
|
enable = mkEnableOption "Git Large File Storage";
|
||||||
|
|
||||||
|
package = lib.mkPackageOption pkgs "git-lfs" { nullable = true; };
|
||||||
|
|
||||||
skipSmudge = mkOption {
|
skipSmudge = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|
@ -506,7 +508,7 @@ in
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf cfg.lfs.enable {
|
(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 =
|
programs.git.iniContent.filter.lfs =
|
||||||
let
|
let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue