This commit is contained in:
2025-11-07 16:45:29 +01:00
parent 88ebd62867
commit 8ac1645121
6 changed files with 56 additions and 13 deletions

View File

@@ -43,11 +43,16 @@
features.syntax-theme = lib.mkIf config.programs.bat.enable config.programs.bat.config.theme;
};
#programs.git.lfs.enable = true;
#programs.git.signing
#programs.git.userName = "pbsds"
programs.git.userName = "Peder Bergebakken Sundt";
programs.git.userEmail = "pbsds@hotmail.com";
# # sign commits with ssh key
# programs.git.extraConfig.gpg.format = "ssh";
# programs.git.signing.key = "${config.home.homeDirectory}/.ssh/my-key.pub";
# programs.git.signing.signByDefault = true;
# https://jvns.ca/blog/2024/02/16/popular-git-config-options/
programs.git.extraConfig.rerere.enabled = true;
#programs.git.extraConfig.help.autocorrect = "prompt";

View File

@@ -1,12 +1,27 @@
{ config, pkgs, ... }:
{
# dix: https://github.com/faukah/dix
# rust based
# module from yolo
# nvd: https://discourse.nixos.org/t/nvd-simple-nix-nixos-version-diff-tool/12397
# python based
# module from https://infosec.exchange/@wyndon/110662698348958506
home.activation.diff-update = config.lib.dag.entryAnywhere ''
if [[ -v oldGenPath ]]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
'';
home.activation.show-hm-closure-diff = config.lib.dag.entryAnywhere (
if pkgs ? dix then
''
if [[ -v oldGenPath ]]; then
${pkgs.dix}/bin/dix $oldGenPath $newGenPath
fi
''
else
''
if [[ -v oldGenPath ]]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
''
);
}