mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-01-19 03:33:30 -05:00
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ pkgs, ... }: {
|
|
home = {
|
|
packages = with pkgs; [
|
|
git
|
|
lazygit
|
|
gh
|
|
];
|
|
file = {
|
|
lazygit = {
|
|
recursive = true;
|
|
source = ../dotfiles/lazygit;
|
|
target = "./.config/lazygit";
|
|
};
|
|
gh = {
|
|
source = ../dotfiles/gh/config.yml;
|
|
target = "./.config/gh/config.yml";
|
|
};
|
|
};
|
|
shellAliases = {
|
|
lg = "lazygit";
|
|
};
|
|
sessionVariables = {
|
|
LG_CONFIG_FILE = "/home/${config.home.username}/.config/lazygit/tokyonight_night.conf";
|
|
};
|
|
};
|
|
programs = {
|
|
git = {
|
|
enable = true;
|
|
userName = "sadan";
|
|
userEmail = "117494111+sadan4@users.noreply.github.com";
|
|
extraConfig = {
|
|
gpg = {
|
|
format = "ssh";
|
|
};
|
|
user = {
|
|
signingkey = "~/.ssh/id_ed25519";
|
|
};
|
|
commit = {
|
|
gpgsign = true;
|
|
};
|
|
core = {
|
|
autocrlf = "input";
|
|
};
|
|
pull = {
|
|
rebase = true;
|
|
};
|
|
push = {
|
|
autoSetupRemote = true;
|
|
};
|
|
init = {
|
|
defaultBranch = "main";
|
|
};
|
|
rerere = {
|
|
enabled = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|