Something went wrong. Try again.
a dotfile but it's really big
nix dotfiles home-manager flake
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ config, lib, pkgs, self', ...}:{ # Note: `config` here is HM config, and `config.dev.sessionVariables.EDITOR` is set via HM's home.sessionVariables config = lib.mkIf config.dev.enable { home.packages = [ pkgs.gh self'.packages.gh-prc ];
# Register as a local gh extension so `gh prc` dispatches to it. # gh resolves local extensions as <data>/gh/extensions/gh-prc -> directory # containing a `gh-prc` executable. xdg.dataFile."gh/extensions/gh-prc".source = "${self'.packages.gh-prc}/bin"; programs.git = { enable = true; ignores = [ "/notes" "/tmp" ".direnv" ".envrc" ];
signing = { key = "~/.ssh/id_ed25519.pub"; signByDefault = true; };
settings = { user = { name = "karitham"; email = "kar@karitham.dev"; };
alias = { co = "checkout"; ci = "commit"; st = "status"; br = "branch"; hist = "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"; type = "cat-file -t"; dump = "cat-file -p"; dft = "difftool"; };
init.defaultBranch = "main"; merge.stat = true; pull.rebase = true;
push = { autoSetupRemote = true; default = "current"; };
url."ssh://git@github.com/".insteadOf = "https://github.com/";
gpg = { format = "ssh"; ssh.defaultKeyCommand = "ssh-add -L"; };
core = { editor = config.home.sessionVariables.EDITOR; whitespace = "fix,-indent-with-non-tab,trailing-space,cr-at-eol"; };
pager.difftool = true; diff.tool = "difftastic"; difftool = { prompt = false; difftastic.cmd = "${pkgs.difftastic}/bin/difft --color auto --background light --display side-by-side \"$LOCAL\" \"$REMOTE\""; };
rebase = { autoSquash = true; autoStash = true; updateRefs = true; };
rerere = { enabled = true; autoUpdate = true; }; }; }; };}