mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nix): ✨ mkOptions ✨
This commit is contained in:
parent
d98d30916b
commit
989d025f56
42 changed files with 80 additions and 78 deletions
60
nix/home/_/git/default.nix
Normal file
60
nix/home/_/git/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
# git plugins
|
||||
programs.git = {
|
||||
lfs = {
|
||||
enable = true;
|
||||
skipSmudge = true;
|
||||
};
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
syntax-theme = "OneHalfLight";
|
||||
features = "side-by-side";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# git itself
|
||||
programs.git = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
init.defaultBranch = "mistress"; # haha gay haha
|
||||
push.autoSetupRemote = true;
|
||||
pull.ff = "only";
|
||||
rerere.enabled = true;
|
||||
safe.directory = "/etc/docker/compose";
|
||||
};
|
||||
ignores = [
|
||||
"*~"
|
||||
"*.swp"
|
||||
".direnv/"
|
||||
".DS_Store"
|
||||
];
|
||||
};
|
||||
|
||||
# identity
|
||||
programs.git = {
|
||||
userEmail = "leana.jiang@icloud.com";
|
||||
userName = "Léana 江";
|
||||
signing = {
|
||||
key = "3659D5C87A4BC5D7699B37D84E887A4CA9714ADA";
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
|
||||
# university identity
|
||||
programs.git.includes = [
|
||||
{
|
||||
condition = "gitdir:~/univ-repos/";
|
||||
contents = {
|
||||
init.defaultBranch = "main";
|
||||
user = {
|
||||
name = "Léana CHIANG";
|
||||
email = "leana.chiang@etudiant.univ-rennes.fr";
|
||||
signingKey = "EB544A6442B3B6CE88CD859732035DB97E777EEB";
|
||||
};
|
||||
commit.gpgSign = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue