mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added git submodule
This commit is contained in:
parent
8ecfea2ef5
commit
46d6f2825f
5 changed files with 15 additions and 44 deletions
|
|
@ -17,14 +17,6 @@ in
|
|||
keys = import ./keys;
|
||||
|
||||
groups = [ "wheel" "networkmanager" "home-manager" "input" ];
|
||||
gitConfig = optionalAttrs modules.git.enable {
|
||||
userName = "Bryan Ramos";
|
||||
userEmail = email;
|
||||
signing = optionalAttrs modules.security.gpg.enable {
|
||||
key = "F1F3466458452B2DF351F1E864D12BA95ACE1F2D";
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
bookmarks = import ./bookmarks;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
1
src/user/modules/git/config
Submodule
1
src/user/modules/git/config
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit b20a21f87988793b2601ec9053871fcd47bdbb99
|
||||
|
|
@ -10,48 +10,23 @@ in
|
|||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
package = pkgs.gitSVN;
|
||||
settings = {
|
||||
init = { defaultBranch = "master"; };
|
||||
#format = { pretty = "oneline"; };
|
||||
#log = { abbrevCommit = true; };
|
||||
mergetool = {
|
||||
vimdiff = {
|
||||
trustExitCode = true;
|
||||
};
|
||||
keepBackup = false;
|
||||
};
|
||||
merge = {
|
||||
tool = "vimdiff";
|
||||
|
||||
};
|
||||
safe = {
|
||||
directory = [
|
||||
"/etc/nixos"
|
||||
"/boot"
|
||||
];
|
||||
};
|
||||
};
|
||||
ignores = [
|
||||
"node_modules"
|
||||
".direnv"
|
||||
"dist-newstyle"
|
||||
".nuxt/"
|
||||
".output/"
|
||||
"dist"
|
||||
"result"
|
||||
];
|
||||
} // config.user.gitConfig;
|
||||
};
|
||||
gh = {
|
||||
enable = true;
|
||||
settings.git_protocol = "ssh";
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
git-crypt
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
git-crypt
|
||||
];
|
||||
file.".config/git" = {
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.bash.initExtra = import ./config/bashScripts/cdg.nix;
|
||||
programs.bash.initExtra = import ./scripts/cdg.nix;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue