git: populate with sane.fs instead of home-manager
This commit is contained in:
@@ -1,20 +1,19 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, sane-lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
mkCfg = lib.generators.toINI { };
|
||||||
|
in
|
||||||
lib.mkIf config.sane.home-manager.enable
|
lib.mkIf config.sane.home-manager.enable
|
||||||
{
|
{
|
||||||
home-manager.users.colin.programs.git = {
|
sane.fs."/home/colin/.config/git/config" = sane-lib.fs.wantedText (mkCfg {
|
||||||
enable = true;
|
user.name = "Colin";
|
||||||
userName = "colin";
|
user.email = "colin@uninsane.org";
|
||||||
userEmail = "colin@uninsane.org";
|
alias.co = "checkout";
|
||||||
|
# difftastic docs:
|
||||||
aliases = { co = "checkout"; };
|
# - <https://difftastic.wilfred.me.uk/git.html>
|
||||||
extraConfig = {
|
diff.tool = "difftastic";
|
||||||
# difftastic docs:
|
difftool.prompt = false;
|
||||||
# - <https://difftastic.wilfred.me.uk/git.html>
|
"difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"'';
|
||||||
diff.tool = "difftastic";
|
# now run `git difftool` to use difftastic git
|
||||||
difftool.prompt = false;
|
});
|
||||||
"difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"'';
|
|
||||||
# now run `git difftool` to use difftastic git
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@@ -205,6 +205,7 @@ let
|
|||||||
fd
|
fd
|
||||||
file
|
file
|
||||||
gawk
|
gawk
|
||||||
|
git
|
||||||
gptfdisk
|
gptfdisk
|
||||||
hdparm
|
hdparm
|
||||||
htop
|
htop
|
||||||
|
Reference in New Issue
Block a user