Common: enable and configure Git
This commit is contained in:
parent
f753d67874
commit
f2a3cbdbf6
2 changed files with 16 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
./command-not-found.nix
|
./command-not-found.nix
|
||||||
./comma.nix
|
./comma.nix
|
||||||
./bash.nix
|
./bash.nix
|
||||||
|
./git.nix
|
||||||
];
|
];
|
||||||
# Some programs dont have a programs.*.enable option, so I install their package here
|
# Some programs dont have a programs.*.enable option, so I install their package here
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
15
roles/common/programs/git.nix
Normal file
15
roles/common/programs/git.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home-manager.users.toast = {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
delta.enable = true;
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
pull.rebase = "interactive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue