1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

git: fix attribute paths

This fixes some attribute paths to match recent changes in Nixpkgs.
This commit is contained in:
Robert Helgesson 2021-01-20 18:58:17 +01:00
parent 3fe2a57b95
commit 8f24ed4c7f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 8 additions and 11 deletions

View file

@ -348,13 +348,12 @@ in {
})
(mkIf cfg.delta.enable {
programs.git.iniContent =
let deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta";
in {
core.pager = deltaCommand;
interactive.diffFilter = "${deltaCommand} --color-only";
delta = cfg.delta.options;
};
programs.git.iniContent = let deltaCommand = "${pkgs.delta}/bin/delta";
in {
core.pager = deltaCommand;
interactive.diffFilter = "${deltaCommand} --color-only";
delta = cfg.delta.options;
};
})
]);
}

View file

@ -82,10 +82,8 @@ in {
nixpkgs.overlays = [
(self: super: {
git-lfs = pkgs.writeScriptBin "dummy-git-lfs" "";
gitAndTools = super.gitAndTools // {
delta = pkgs.writeScriptBin "dummy-delta" "" // {
outPath = "@delta@";
};
delta = pkgs.writeScriptBin "dummy-delta" "" // {
outPath = "@delta@";
};
})
];