feat: change nix structure
This commit is contained in:
26
modules/dotfiles/git.nix
Normal file
26
modules/dotfiles/git.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }: {
|
||||
home-manager.users.louisgallet = { pkgs, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Louis Gallet";
|
||||
userEmail = "me@louisgallet.fr";
|
||||
signing = {
|
||||
key = "9AD287ECD257A6B61ECD592CD4C61677B9CC4C9B";
|
||||
signByDefault = true;
|
||||
};
|
||||
extraConfig = {
|
||||
init.defaultBranch = "master";
|
||||
gpg.format = "openpgp";
|
||||
gpg.program =
|
||||
if pkgs.stdenv.isDarwin then "/opt/homebrew/bin/gpg"
|
||||
else "${pkgs.gnupg}/bin/gpg";
|
||||
filter.lfs = {
|
||||
clean = "git-lfs clean -- %f";
|
||||
smudge = "git-lfs smudge -- %f";
|
||||
process = "git-lfs filter-process";
|
||||
required = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user