move git stuff to modules

This commit is contained in:
Noah Masur
2022-04-28 19:20:46 -04:00
parent 4ccbd8b393
commit eadec0c699
6 changed files with 88 additions and 72 deletions

View File

@ -2,7 +2,6 @@
let
name = "Noah Masur";
editor = "nvim";
font = "Victor Mono";
dotfiles = builtins.toString ../.;
@ -24,6 +23,7 @@ let
in {
options = with lib; {
user = mkOption { default = "noah"; };
fullName = mkOption { default = "Noah Masur"; };
font = mkOption { default = font; };
nixos_config = mkOption { default = nixos_config; };
dotfiles = mkOption { default = dotfiles; };
@ -43,24 +43,6 @@ in {
zathura # PDF viewer
qbittorrent
# Utilities
unzip
rsync
fzf
ripgrep
bat
fd
exa
sd
zoxide
jq
tealdeer
gh
direnv
tree
htop
glow
# Encryption
gnupg
pass
@ -95,22 +77,6 @@ in {
config = { whitelist = { prefix = [ "${dotfiles}/" ]; }; };
};
programs.git = {
enable = true;
userName = "${name}";
userEmail = "7386960+nmasur@users.noreply.github.com";
extraConfig = {
pager = { branch = "false"; };
safe = { directory = "${dotfiles}"; };
};
};
programs.gh = {
enable = true;
enableGitCredentialHelper = true;
settings.git_protocol = "https";
};
# Email
# programs.himalaya = {
# enable = true;