mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
User settings restructured
This commit is contained in:
parent
fce12d274c
commit
2881653ec5
6 changed files with 51 additions and 52 deletions
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
userName = "Bryan Ramos";
|
||||
userEmail = "bryan@ramos.codes";
|
||||
signing = {
|
||||
key = "F1F3466458452B2DF351F1E864D12BA95ACE1F2D";
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
init = { defaultBranch = "master"; };
|
||||
mergetool = {
|
||||
lazygit = {
|
||||
cmd = "lazygit";
|
||||
trustExitCode = true;
|
||||
};
|
||||
};
|
||||
merge = {
|
||||
tool = "lazygit";
|
||||
};
|
||||
safe = {
|
||||
directory = "/etc/nixos";
|
||||
};
|
||||
};
|
||||
|
||||
ignores = [
|
||||
"node_modules"
|
||||
".direnv"
|
||||
"dist-newstyle"
|
||||
".nuxt/"
|
||||
".output/"
|
||||
"dist"
|
||||
];
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
with lib;
|
||||
let cfg = config.modules.git;
|
||||
isBryan = config.user.name == "bryan";
|
||||
|
||||
in
|
||||
{ options.modules.git = { enable = mkEnableOption "git"; };
|
||||
|
|
@ -10,7 +9,7 @@ in
|
|||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
} // (lib.optionalAttrs isBryan (import ./config/git.nix));
|
||||
} // config.user.gitConfig;
|
||||
gh = {
|
||||
enable = true;
|
||||
settings.git_protocol = "ssh";
|
||||
|
|
@ -19,6 +18,6 @@ in
|
|||
|
||||
home.packages = with pkgs; [
|
||||
git-crypt
|
||||
] ++ optional isBryan lazygit;
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue