1
0
Fork 0
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:
Austin Horstman 2025-10-18 09:09:38 -05:00
parent 4166d4e163
commit 2e527427b1

View file

@ -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