-
Notifications
You must be signed in to change notification settings - Fork 0
refactor git #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor git #312
Changes from all commits
50e6b7b
97d3f44
cf1f80c
9bc6893
9628c16
6ebe8c0
aa55e57
12aee22
7bf2151
2e30626
6faa768
9e8f2a2
3895162
0bcd3ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,7 @@ with pkgs; | |
| fastfetch | ||
| fd | ||
| fswatch | ||
| fzf-make | ||
| gh | ||
| git | ||
| goose-cli | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| programs.atuin = { | ||
| enable = true; | ||
| enableBashIntegration = true; | ||
| enableFishIntegration = true; | ||
| enableZshIntegration = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| programs.delta = { | ||
| enable = true; | ||
| enableGitIntegration = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,86 +1,87 @@ | ||||||||||
| { pkgs, lib, ... }: | ||||||||||
| { | ||||||||||
| programs.git = { | ||||||||||
| enable = true; | ||||||||||
| delta = { | ||||||||||
| enable = true; | ||||||||||
| }; | ||||||||||
| userName = "Shun Kakinoki"; | ||||||||||
| userEmail = "shunkakinoki@gmail.com"; | ||||||||||
| lfs = { | ||||||||||
| programs = { | ||||||||||
| git = { | ||||||||||
| enable = true; | ||||||||||
| }; | ||||||||||
| includes = [ | ||||||||||
| # Include GitAlias - update with: scripts/update-gitalias.sh | ||||||||||
| { path = "${./gitalias.txt}"; } | ||||||||||
| ]; | ||||||||||
| aliases = { | ||||||||||
| co = "checkout"; | ||||||||||
| lt = "log --tags --decorate --simplify-by-decoration --oneline"; | ||||||||||
| unshallow = "fetch --prune --tags --unshallow"; | ||||||||||
| }; | ||||||||||
| extraConfig = { | ||||||||||
| # commit.gpgSign = true; | ||||||||||
| # gpg.format = "ssh"; | ||||||||||
| # gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers"; | ||||||||||
| # user.signingKey = "~/.ssh/id_ed25519"; | ||||||||||
| core = { | ||||||||||
| editor = "nvim"; | ||||||||||
| compression = -1; | ||||||||||
| autocrlf = "input"; | ||||||||||
| whitespace = "trailing-space,space-before-tab"; | ||||||||||
| precomposeunicode = true; | ||||||||||
| ignorecase = false; | ||||||||||
| }; | ||||||||||
| color = { | ||||||||||
| diff = "auto"; | ||||||||||
| status = "auto"; | ||||||||||
| branch = "auto"; | ||||||||||
| ui = true; | ||||||||||
| }; | ||||||||||
| advice = { | ||||||||||
| addEmptyPathspec = false; | ||||||||||
| }; | ||||||||||
| apply = { | ||||||||||
| whitespace = "nowarn"; | ||||||||||
| }; | ||||||||||
| help = { | ||||||||||
| autocorrect = 1; | ||||||||||
| }; | ||||||||||
| grep = { | ||||||||||
| extendRegexp = true; | ||||||||||
| lineNumber = true; | ||||||||||
| }; | ||||||||||
| push = { | ||||||||||
| autoSetupRemote = true; | ||||||||||
| default = "simple"; | ||||||||||
| lfs = { | ||||||||||
| enable = true; | ||||||||||
| }; | ||||||||||
| submodule = { | ||||||||||
| fetchJobs = 4; | ||||||||||
| }; | ||||||||||
| log = { | ||||||||||
| showSignature = false; | ||||||||||
| }; | ||||||||||
| format = { | ||||||||||
| signOff = true; | ||||||||||
| }; | ||||||||||
| rerere = { | ||||||||||
| enabled = true; | ||||||||||
| }; | ||||||||||
| pull = { | ||||||||||
| ff = "only"; | ||||||||||
| }; | ||||||||||
| init = { | ||||||||||
| defaultBranch = "main"; | ||||||||||
| }; | ||||||||||
| delta = { | ||||||||||
| navigate = true; | ||||||||||
| dark = true; | ||||||||||
| }; | ||||||||||
| merge = { | ||||||||||
| conflictStyle = "zdiff3"; | ||||||||||
| includes = [ | ||||||||||
| # Include GitAlias - update with: scripts/update-gitalias.sh | ||||||||||
| { path = "${./gitalias.txt}"; } | ||||||||||
| ]; | ||||||||||
| settings = { | ||||||||||
| user = { | ||||||||||
| name = "Shun Kakinoki"; | ||||||||||
| email = "shunkakinoki@gmail.com"; | ||||||||||
| }; | ||||||||||
| alias = { | ||||||||||
| co = "checkout"; | ||||||||||
| lt = "log --tags --decorate --simplify-by-decoration --oneline"; | ||||||||||
| unshallow = "fetch --prune --tags --unshallow"; | ||||||||||
| }; | ||||||||||
| core = { | ||||||||||
| editor = "nvim"; | ||||||||||
| compression = -1; | ||||||||||
| autocrlf = "input"; | ||||||||||
| whitespace = "trailing-space,space-before-tab"; | ||||||||||
| precomposeunicode = true; | ||||||||||
| ignorecase = false; | ||||||||||
| }; | ||||||||||
| color = { | ||||||||||
| diff = "auto"; | ||||||||||
| status = "auto"; | ||||||||||
| branch = "auto"; | ||||||||||
| ui = true; | ||||||||||
| }; | ||||||||||
| advice = { | ||||||||||
| addEmptyPathspec = false; | ||||||||||
| }; | ||||||||||
| apply = { | ||||||||||
| whitespace = "nowarn"; | ||||||||||
| }; | ||||||||||
| help = { | ||||||||||
| autocorrect = 1; | ||||||||||
| }; | ||||||||||
| grep = { | ||||||||||
| extendRegexp = true; | ||||||||||
| lineNumber = true; | ||||||||||
| }; | ||||||||||
| push = { | ||||||||||
| autoSetupRemote = true; | ||||||||||
| default = "simple"; | ||||||||||
| }; | ||||||||||
| submodule = { | ||||||||||
| fetchJobs = 4; | ||||||||||
| }; | ||||||||||
| log = { | ||||||||||
| showSignature = false; | ||||||||||
| }; | ||||||||||
| format = { | ||||||||||
| signOff = true; | ||||||||||
| }; | ||||||||||
| rerere = { | ||||||||||
| enabled = true; | ||||||||||
| }; | ||||||||||
| pull = { | ||||||||||
| ff = "only"; | ||||||||||
| }; | ||||||||||
| init = { | ||||||||||
| defaultBranch = "main"; | ||||||||||
| }; | ||||||||||
| delta = { | ||||||||||
| navigate = true; | ||||||||||
| dark = true; | ||||||||||
| }; | ||||||||||
| merge = { | ||||||||||
| conflictStyle = "zdiff3"; | ||||||||||
| }; | ||||||||||
| }; | ||||||||||
| ignores = lib.splitString "\n" (builtins.readFile ./.gitignore.global); | ||||||||||
| }; | ||||||||||
| delta = { | ||||||||||
| enable = true; | ||||||||||
| enableGitIntegration = true; | ||||||||||
| }; | ||||||||||
|
Comment on lines
+82
to
85
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Comment on lines
+82
to
85
|
||||||||||
| delta = { | |
| enable = true; | |
| enableGitIntegration = true; | |
| }; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,7 +40,7 @@ inputs.nix-darwin.lib.darwinSystem { | |||||
| signByDefault = true; | ||||||
| key = "shunkakinoki@gmail.com"; | ||||||
| }; | ||||||
| extraConfig = { | ||||||
| settings = { | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Prompt for AI agents
Suggested change
|
||||||
| commit.gpgSign = true; | ||||||
| tag.gpgSign = true; | ||||||
| }; | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Git module now writes user, alias, and other options under
settings, but Home Manager exposes those attributes asuserName,userEmail,aliases, andextraConfig. There is noprograms.git.settingsoption, so evaluating this module will fail with an unknown-option error and none of the Git configuration will be applied. Keep these values under the supported options to avoid breaking configuration.Useful? React with 👍 / 👎.