40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ config, pkgs, lib, system, user, allowed, secrets, ... }:
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
git
|
|
delta
|
|
|
|
# only works on spec arch, chage url for others
|
|
# (stdenv.mkDerivation {
|
|
# name = "easycommit";
|
|
# src = pkgs.fetchurl {
|
|
# url = "https://github.com/blackironj/easycommit/releases/download/v0.0.1/easycommit-v0.0.1-linux-amd64.tar.gz";
|
|
# sha256 = "sha256-Ip5wfVe/RzCxGGh1YFBllAn84nD7mUXbnMko+ue/C2E=";
|
|
# };
|
|
# phases = ["installPhase"];
|
|
# installPhase = ''
|
|
# mkdir -p $out/bin
|
|
# tar xf $src -C $out/
|
|
# ls -la $out
|
|
# mv $out/easycommit $out/bin/
|
|
# chmod +x $out/bin/easycommit
|
|
# '';
|
|
# })
|
|
];
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
userName = ''Lennart J. Kurzweg (Nx2)'';
|
|
userEmail = "git@nx2.site";
|
|
delta = {
|
|
enable = true;
|
|
options = {
|
|
line-numbers = true;
|
|
side-by-side = false;
|
|
features = "unobtrusive-line-numbers decorations";
|
|
whitespace-error-style = "22 reverse";
|
|
};
|
|
};
|
|
};
|
|
} |