Switching to flakes and adding home-manager

This commit is contained in:
Lyes Saadi 2024-04-24 20:55:22 +02:00
parent 32e9c2b93c
commit 97d648948f
No known key found for this signature in database
GPG key ID: 17418538BAA17767
9 changed files with 124 additions and 26 deletions

25
user/home.nix Normal file
View file

@ -0,0 +1,25 @@
{ ... }:
{
# Git config
programs.git = {
enable = true;
userName = "Lyes Saadi";
userEmail = "dev@lyes.eu";
signing = {
key = "17418538BAA17767";
signByDefault = true;
};
extraConfig = {
code.editor = "nvim";
merge.tool = "nvim";
color.ui = true;
init.defaultBranch = "main";
includeIf = {
"gitdir:~/Documents/fedpkg/" = {
path = "~/Documents/fedpkg/.gitconfig_include";
};
};
};
};
}