manage gitconfig with home manager
This commit is contained in:
@@ -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
|
||||||
18
users/kopatz/.gitconfig-selfhosted
Normal file
18
users/kopatz/.gitconfig-selfhosted
Normal 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
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
firefox
|
firefox
|
||||||
brave
|
brave
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [ mainUser.sshKey ];
|
openssh.authorizedKeys.keys = [ config.mainUser.sshKey ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user