wip: modularize home-manager
This commit is contained in:
parent
8b735dd5da
commit
ac9918c759
14 changed files with 200 additions and 119 deletions
26
modules/home-manager/git.nix
Normal file
26
modules/home-manager/git.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.custom-hm.git;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
enable = mkEnableOption "Enable git configuration";
|
||||
};
|
||||
config = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
delta.enable = true;
|
||||
userName = "Xinyang Li";
|
||||
userEmail = "lixinyang411@gmail.com";
|
||||
aliases = {
|
||||
graph = "log --all --oneline --graph --decorate";
|
||||
a = "add";
|
||||
d = "diff";
|
||||
s = "status";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue