git: install delta when it's enabled (#1866)

This commit is contained in:
Dany Marcoux 2021-03-18 23:32:50 +01:00 committed by GitHub
parent f9b5172d95
commit f30b62a74d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -354,6 +354,8 @@ in {
})
(mkIf cfg.delta.enable {
home.packages = [ pkgs.delta ];
programs.git.iniContent = let deltaCommand = "${pkgs.delta}/bin/delta";
in {
core.pager = deltaCommand;