manage gitconfig with home manager

This commit is contained in:
Kopatz
2024-03-31 17:28:25 +02:00
parent 01fdbeb78c
commit 15d0d7b1f3
8 changed files with 47 additions and 1 deletions

View File

@@ -34,3 +34,5 @@
path = .gitconfig-gitlabfh path = .gitconfig-gitlabfh
[includeIf "gitdir/i:~/projects/evolit/**"] [includeIf "gitdir/i:~/projects/evolit/**"]
path = .gitconfig-evolit path = .gitconfig-evolit
[includeIf "gitdir/i:~/projects/selfhosted/**"]
path = .gitconfig-selfhosted

View File

@@ -0,0 +1,18 @@
[push]
default = upstream
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[mergetool]
keeptemporaries = false
keepbackups = false
prompt = false
trustexitcode = false
[user]
name = Kopatz
email = lukas.kopatz111@gmail.com

View File

@@ -24,6 +24,6 @@
firefox firefox
brave brave
]; ];
openssh.authorizedKeys.keys = [ mainUser.sshKey ]; openssh.authorizedKeys.keys = [ config.mainUser.sshKey ];
}; };
} }

View File

@@ -26,5 +26,31 @@
inputs.nix-colors.homeManagerModule inputs.nix-colors.homeManagerModule
]; ];
home.file.".gitconfig" = {
enable = true;
source = ./.gitconfig;
target = ".gitconfig";
};
home.file.".gitconfig-gitea" = {
enable = true;
source = ./.gitconfig-gitea;
target = ".gitconfig-gitea";
};
home.file.".gitconfig-github" = {
enable = true;
source = ./.gitconfig-github;
target = ".gitconfig-github";
};
home.file.".gitconfig-selfhosted" = {
enable = true;
source = ./.gitconfig-selfhosted;
target = ".gitconfig-selfhosted";
};
home.file.".gitconfig-gitlabfh" = {
enable = true;
source = ./.gitconfig-gitlabfh;
target = ".gitconfig-gitlabfh";
};
colorScheme = import ../../home-manager/themes/yorha/colors.nix; colorScheme = import ../../home-manager/themes/yorha/colors.nix;
} }