[git] Move into proper module
This commit is contained in:
parent
ea783ff8ec
commit
e11131a201
7 changed files with 27 additions and 28 deletions
|
@ -41,8 +41,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
zenith-nvidia
|
git
|
||||||
wget
|
wget
|
||||||
|
zenith-nvidia
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./git
|
|
||||||
./sops
|
./sops
|
||||||
./ssh
|
./ssh
|
||||||
./vim
|
./vim
|
||||||
|
|
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -58,6 +58,10 @@ in {
|
||||||
source = ../../../../stow/alacritty/.config/alacritty;
|
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) {
|
".config/mpv" = lib.mkIf (builtins.elem pkgs-unstable.mpv installedPkgs) {
|
||||||
source = ../../../../stow/mpv/.config/mpv;
|
source = ../../../../stow/mpv/.config/mpv;
|
||||||
};
|
};
|
||||||
|
|
17
stow/git/.config/git/config
Normal file
17
stow/git/.config/git/config
Normal 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"
|
||||||
|
|
2
stow/git/.config/git/ignore
Normal file
2
stow/git/.config/git/ignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*~
|
||||||
|
.*.swp
|
2
stow/git/.config/git/university
Normal file
2
stow/git/.config/git/university
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[user]
|
||||||
|
email = "tibo.depeuter@ugent.be"
|
Loading…
Reference in a new issue