git fix
This commit is contained in:
1 parent
6d27231791
commit
ef98a966e7
2 files changed
+1
-21
No files matched your search
@@ -1,7 +1,7 @@
|
||||
let
|
||||
gitconfigs =
|
||||
(builtins.filterSource (path: type: type != "directory") ./gitconfigs);
|
||||
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
|
||||
gitconfigFiles = builtins.filter (f: builtins.match ".*\\.conf$" f != null) (builtins.attrNames (builtins.readDir gitconfigs));
|
||||
makeCommonGitConfigs =
|
||||
{ userName
|
||||
, userEmail
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# modules/home/gitconfigs/
|
||||
|
||||
Raw git config fragments that are auto-included into every user's `~/.gitconfig`.
|
||||
|
||||
`modules/home/git.nix` reads every **non-directory** file in this folder and adds it as a
|
||||
`git.includes` path, so any file dropped here is picked up automatically — no wiring needed.
|
||||
|
||||
## Files
|
||||
|
||||
```
|
||||
gitconfigs/
|
||||
└── alias.conf # [alias] block: pp, up, ca, cap, undo-commit, sync, clean-branches, …
|
||||
```
|
||||
|
||||
## Conventions
|
||||
|
||||
- Each file is a standalone git config fragment (e.g. an `[alias]` section). Drop a new
|
||||
`.conf` file here and it is included on the next switch.
|
||||
- Keep these provider-agnostic and identity-free; user name/email come from
|
||||
`skyg.user.{fullName,email}` via `makeCommonGitConfigs`.
|
||||
Reference in new issue
Block a user