Fix fugly git config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
{
|
{
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
# Personal
|
|
||||||
"git/credentials" = {
|
"git/credentials" = {
|
||||||
sopsFile = ../../../../../../../secrets/personal/secrets.yaml;
|
sopsFile = ../../../../../../../secrets/personal/secrets.yaml;
|
||||||
path = "${home}/.config/git/credentials";
|
path = "${home}/.config/git/credentials";
|
||||||
@@ -19,22 +18,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.ssh.matchBlocks = {
|
programs.ssh.matchBlocks = {
|
||||||
# Personal
|
|
||||||
"github-personal.com" = {
|
|
||||||
hostname = "github.com";
|
|
||||||
user = "git";
|
|
||||||
identityFile = "${home}/.ssh/ssh_personal_ed25519_key";
|
|
||||||
extraOptions = {
|
|
||||||
StrictHostKeyChecking = "no";
|
|
||||||
UserKnownHostsFile = "/dev/null";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# SAS
|
|
||||||
"github.com" = {
|
"github.com" = {
|
||||||
hostname = "github.com";
|
hostname = "github.com";
|
||||||
user = "git";
|
user = "git";
|
||||||
identityFile = "${home}/.ssh/ssh_sas_ed25519_key";
|
identityFile = [
|
||||||
|
"${home}/.ssh/ssh_sas_ed25519_key"
|
||||||
|
"${home}/.ssh/ssh_personal_ed25519_key"
|
||||||
|
];
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
StrictHostKeyChecking = "no";
|
StrictHostKeyChecking = "no";
|
||||||
UserKnownHostsFile = "/dev/null";
|
UserKnownHostsFile = "/dev/null";
|
||||||
|
Reference in New Issue
Block a user