nixos/home/git/default.nix
Evie Litherland-Smith 52ff1c36a3 Delete root user config per machine as it's common to all
Move root user home-config into home/default.nix so that it's used by all
Removed personal/work specific things from root user
2023-05-31 10:54:57 +01:00

34 lines
892 B
Nix

{pkgs, ...}: {
imports = [../env/bat.nix];
xdg.configFile."git/tokyonight_storm.gitconfig".source =
pkgs.fetchFromGitHub
{
owner = "folke";
repo = "tokyonight.nvim";
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
}
+ "/extras/delta/tokyonight_storm.gitconfig";
programs.git = {
enable = true;
userName = "Evie Litherland-Smith";
includes = [{path = "tokyonight_storm.gitconfig";}];
delta = {
enable = true;
options = {
blame-code-style = "syntax";
line-numbers = true;
navigate = true;
side-by-side = true;
syntax-theme = "tokyonight";
zero-style = "dim syntax";
};
};
extraConfig = {
pull.rebase = false;
init.defaultBranch = "main";
credential.helper = "store";
};
};
}