All checks were successful
Build iso when a new version is pushed / test (push) Successful in 12m49s
30 lines
688 B
Nix
30 lines
688 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
options.mods.git.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "git configuration";
|
|
};
|
|
|
|
config = lib.mkIf config.mods.git.enable {
|
|
programs.git = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
userEmail = "tomoron@student.42angouleme.fr";
|
|
userName = "tomoron";
|
|
extraConfig = {
|
|
init.defaultBranch="master";
|
|
pull.rebase = true;
|
|
push.autoSetupRemote = true;
|
|
rerere.enabled = true;
|
|
help.autocorrect = 1;
|
|
};
|
|
aliases = {
|
|
fuck = "!f() { git reset --hard \"@{upstream}\" && git restore . && git clean -f .; };f";
|
|
back = "reset HEAD~";
|
|
};
|
|
};
|
|
};
|
|
}
|