tvl-depot/configs/shared/.config/nixpkgs/home.nix
William Carroll 32fb5b9a1b Move gpg.conf to home-manager
- Migrate gpg.conf settings to home-manager
- Delete gpg.conf
2020-03-05 14:14:03 +00:00

49 lines
1.4 KiB
Nix

{ config, pkgs, ... }:
{
home.packages = with pkgs; [
];
home.stateVersion = "19.09";
##############################################################################
# Programs
##############################################################################
programs.home-manager = {
enable = true;
path = builtins.toPath ~/home-manager;
};
programs.git = {
enable = true;
userName = "William Carroll";
userEmail = "wpcarro@gmail.com";
aliases = {
today = "! git log --date=relative --since=00:00:00 --all --no-merges --oneline --author=\"$(git config --get user.email)\"";
yday = "! git log --since=yesterday.midnight --until=today.midnight --oneline --author=\"$(git config --get user.email)\"";
changed-files = "! git --no-pager diff --name-only $(current_branch) $(git merge-base $(current_branch) master)";
conflicts = "! git --no-pager diff --name-only --diff-filter=U";
unstage = "reset HEAD --";
};
extraConfig = {
push.default = "current";
rebase = {
autosquash = true;
autostash = true;
};
rerere.enabled = true;
};
};
programs.gpg = {
enable = true;
settings = {
keyserver = "hkp://pgp.mit.edu";
};
};
##############################################################################
# Services
##############################################################################
}