[git] Move into proper module

This commit is contained in:
Tibo De Peuter 2023-10-18 17:57:00 +02:00
parent ea783ff8ec
commit e11131a201
7 changed files with 27 additions and 28 deletions

View file

@ -41,8 +41,9 @@
};
environment.systemPackages = with pkgs; [
zenith-nvidia
git
wget
zenith-nvidia
];
system.stateVersion = "23.05";

View file

@ -1,6 +1,5 @@
{
imports = [
./git
./sops
./ssh
./vim

View file

@ -1,26 +0,0 @@
{ config, lib, pkgs, ... }:
{
home-manager.users.tdpeuter = {
programs.git = {
enable = true;
userName = "Tibo De Peuter";
userEmail = "tibo.depeuter@gmail.com";
extraConfig = {
core.editor = "vim";
};
ignores = [
"*.swp"
];
includes = [
{
condition = "gitdir:~/university/"; # Trailing backslash is necessary!
contentSuffix = ".gitconfig";
contents = {
user.email = "tibo.depeuter@ugent.be";
};
}
];
};
};
}

View file

@ -58,6 +58,10 @@ in {
source = ../../../../stow/alacritty/.config/alacritty;
};
".config/git" = lib.mkIf (builtins.elem pkgs.git installedPkgs) {
source = ../../../../stow/git/.config/git;
};
".config/mpv" = lib.mkIf (builtins.elem pkgs-unstable.mpv installedPkgs) {
source = ../../../../stow/mpv/.config/mpv;
};

View file

@ -0,0 +1,17 @@
[user]
name = "Tibo De Peuter"
email = "tibo.depeuter@gmail.com"
[core]
editor = "vim";
excludesFile = "~/.config/git/ignore"
[color]
ui = true
[help]
autocorrect = 20
[includeIf "gitdir:~/university/"] # Trailing backslash is necessary!
path = "~/.config/git/university"

View file

@ -0,0 +1,2 @@
*~
.*.swp

View file

@ -0,0 +1,2 @@
[user]
email = "tibo.depeuter@ugent.be"