2021-12-10 01:08:58 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2022-01-09 15:33:09 +00:00
|
|
|
let mypkgs = (import ./modules/pkgs.nix { inherit pkgs; });
|
|
|
|
in {
|
|
|
|
home.packages = mypkgs.all;
|
2021-12-10 19:22:20 +00:00
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Sam Willcocks";
|
|
|
|
userEmail = "sam@wlcx.cc";
|
2022-01-09 15:33:09 +00:00
|
|
|
|
|
|
|
delta = { # Better diffs
|
|
|
|
enable = true;
|
|
|
|
options = { line-numbers = true; };
|
|
|
|
};
|
|
|
|
|
2021-12-10 19:22:20 +00:00
|
|
|
aliases = {
|
|
|
|
a = "add";
|
|
|
|
ap = "add -p";
|
2022-01-09 15:33:09 +00:00
|
|
|
c = "commit";
|
|
|
|
can = "commit --amend --no-edit";
|
|
|
|
cm = "commit -m";
|
|
|
|
co = "checkout";
|
|
|
|
d = "diff";
|
|
|
|
dc = "diff --cached";
|
|
|
|
r = "rebase --autostash";
|
|
|
|
ri = "rebase --autostash --interactive";
|
|
|
|
st = "status";
|
|
|
|
|
|
|
|
gone = ''
|
|
|
|
! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | a
|
|
|
|
│ wk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"'';
|
|
|
|
};
|
|
|
|
extraConfig = {
|
|
|
|
branch.sort = "-committerdate";
|
|
|
|
log.showSignature = true;
|
|
|
|
push.default = "current";
|
|
|
|
include.path = "~/.gitconfig.local";
|
2021-12-10 19:22:20 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
fzf.enable = true;
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
2022-01-09 15:33:09 +00:00
|
|
|
shellAliases = {
|
|
|
|
g = "git";
|
|
|
|
cat = "bat";
|
|
|
|
hmswitch = ''home-manager switch --flake ".#$(hostname -s)"'';
|
|
|
|
};
|
2021-12-10 19:22:20 +00:00
|
|
|
prezto = {
|
|
|
|
enable = true;
|
|
|
|
prompt.theme = "giddie";
|
|
|
|
};
|
|
|
|
};
|
2021-12-10 01:08:58 +00:00
|
|
|
};
|
|
|
|
}
|