added gitconfig
This commit is contained in:
1 parent
74e0af7dc6
commit
d026be1709
4 files changed
+56
-10
No files matched your search
@@ -1,6 +1,10 @@
|
||||
{ hostName, homeMangerVersion, user }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
let
|
||||
gitconfigs =
|
||||
(builtins.filterSource (path: type: type != "directory") ../../gitconfigs);
|
||||
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
|
||||
in {
|
||||
home-manager.users.root = {
|
||||
home.stateVersion = homeMangerVersion;
|
||||
programs.git = {
|
||||
@@ -17,9 +21,7 @@
|
||||
home-manager.users.${user.name} = {
|
||||
home = {
|
||||
stateVersion = homeMangerVersion;
|
||||
shellAliases = {
|
||||
cat = "bat";
|
||||
};
|
||||
shellAliases = { cat = "bat"; };
|
||||
packages = [
|
||||
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||
pkgs.kubectl
|
||||
@@ -41,9 +43,17 @@
|
||||
enable = true;
|
||||
userName = user.fullName;
|
||||
userEmail = user.email;
|
||||
delta = {
|
||||
enable = true;
|
||||
delta = { enable = true; };
|
||||
extraConfig = {
|
||||
color = { ui = "auto"; };
|
||||
push = {
|
||||
default = "upstream";
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
init = { defaultBranch = "main"; };
|
||||
};
|
||||
includes =
|
||||
(builtins.map (f: { path = gitconfigs + "/" + f; }) gitconfigFiles);
|
||||
};
|
||||
zsh = {
|
||||
enable = true;
|
||||
@@ -54,10 +64,7 @@
|
||||
};
|
||||
zsh.oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"sudo"
|
||||
];
|
||||
plugins = [ "git" "sudo" ];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user