-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
165 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
let | ||
git = import ./git; | ||
in | ||
[git] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
home.file.".config/git/message" = { | ||
source = ./message; | ||
}; | ||
|
||
programs.git = { | ||
enable = true; | ||
|
||
aliases = { | ||
st = "status"; | ||
br = "branch"; | ||
co = "commit"; | ||
ch = "checkout"; | ||
ad = "add"; | ||
rs = "restore"; | ||
sw = "switch"; | ||
fix = "commit --amend --no-edit"; | ||
}; | ||
|
||
ignores = [ "*.swp" "*.save" "*.fasl" "*~" ".DS_Store" ]; | ||
|
||
extraConfig = { | ||
core = { | ||
editor = "emacs -nw"; | ||
quotepath = "off"; | ||
ignorecase = false; | ||
safecrlf = true; | ||
autocrlf = false; | ||
precomposeunicode = true; | ||
untrackedCache = true; | ||
fsmonitor = true; | ||
}; | ||
|
||
commit = { | ||
template = "~/.config/git/message"; | ||
gpgsign = true; | ||
}; | ||
|
||
user = { | ||
name = "takeokunn"; | ||
email = "[email protected]"; | ||
signingkey = "0B10DAA7BA0236D7382287660F79C0AB03FD7A1C"; | ||
}; | ||
|
||
ghq = { | ||
root = "~/.ghq"; | ||
}; | ||
|
||
fetch = { | ||
prune = true; | ||
writeCommitGraph= true; | ||
}; | ||
|
||
pull = { | ||
rebase = false; | ||
}; | ||
|
||
push = { | ||
default = "nothing"; | ||
}; | ||
|
||
github = { | ||
user = "takeokunn"; | ||
}; | ||
|
||
gpg = { | ||
program = "gpg"; | ||
}; | ||
|
||
diff = { | ||
patience = true; | ||
}; | ||
|
||
color = { | ||
ui = "auto"; | ||
status = "auto"; | ||
diff = "auto"; | ||
branch = "auto"; | ||
interactive = "auto"; | ||
grep = "auto"; | ||
}; | ||
|
||
url = { | ||
"[email protected]:".insteadOf = "https://github.com/"; | ||
}; | ||
|
||
init = { | ||
defaultBranch = "main"; | ||
}; | ||
|
||
rerere = { | ||
enabled = true; | ||
}; | ||
|
||
rebase = { | ||
autoStash = true; | ||
abbreviateCommands = true; | ||
autosquash = true; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
|
||
# ==== Emojis ==== | ||
# :bug: バグ修正 | ||
# :+1: 機能改善 | ||
# :sparkles: 部分的な機能追加 | ||
# :tada: 盛大に祝うべき大きな機能追加 | ||
# :recycle: リファクタリング | ||
# :shower: 不要な機能・使われなくなった機能の削除 | ||
# :green_heart: テストやCIの修正・改善 | ||
# :shirt: Lintエラーの修正やコードスタイルの修正 | ||
# :rocket: パフォーマンス改善 | ||
# :up: 依存パッケージなどのアップデート | ||
# :lock: 新機能の公開範囲の制限 | ||
# :cop: セキュリティ関連の改善 | ||
|
||
# ==== Format ==== | ||
# :emoji: Subject | ||
# | ||
# Commit body... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ pkgs }: | ||
with pkgs; [ | ||
pinentry_mac | ||
terminal-notifier | ||
|
||
# for emacs | ||
mu | ||
emacs-git | ||
pinentry-emacs | ||
emacsPackages.mu4e | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ pkgs }: | ||
with pkgs; [ | ||
# for emacs | ||
emacs-git | ||
mu | ||
pinentry-emacs | ||
emacsPackages.mu4e | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters