mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
its time
This commit is contained in:
parent
cc18493707
commit
6fff6d1845
673 changed files with 1070 additions and 124971 deletions
14
homeConfig/modules/git/config/git.nix
Normal file
14
homeConfig/modules/git/config/git.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
enable = true;
|
||||
userName = "Bryan Ramos";
|
||||
userEmail = "bryan@ramos.codes";
|
||||
signingKey = "F1F3466458452B2DF351F1E864D12BA95ACE1F2D";
|
||||
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "main"; };
|
||||
};
|
||||
|
||||
ignores = [
|
||||
"node_modules"
|
||||
];
|
||||
}
|
||||
19
homeConfig/modules/git/default.nix
Normal file
19
homeConfig/modules/git/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let cfg = config.modules.git;
|
||||
|
||||
in
|
||||
{ options.modules.git = { enable = mkEnableOption "git"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
git = import ./config/git.nix;
|
||||
|
||||
gh = {
|
||||
enable = true;
|
||||
settings.git_protocol = "ssh";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue