mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
git: aliases / user options -> settings
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
ac7c05a90c
commit
a709427248
9 changed files with 98 additions and 59 deletions
|
|
@ -7,8 +7,12 @@
|
|||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "hm@example.com";
|
||||
userName = "H. M. Test";
|
||||
settings = {
|
||||
user = {
|
||||
email = "hm@example.com";
|
||||
name = "H. M. Test";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "20.09";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "John Doe";
|
||||
userEmail = "user@example.org";
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
email = "user@example.org";
|
||||
};
|
||||
};
|
||||
|
||||
lfs = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,12 @@
|
|||
programs.git = {
|
||||
enable = true;
|
||||
signing.signer = "path-to-gpg";
|
||||
userEmail = "hm@example.com";
|
||||
userName = "H. M. Test";
|
||||
settings = {
|
||||
user = {
|
||||
email = "hm@example.com";
|
||||
name = "H. M. Test";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "20.09";
|
||||
|
|
|
|||
|
|
@ -3,8 +3,12 @@
|
|||
config = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "John Doe";
|
||||
userEmail = "user@example.org";
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
email = "user@example.org";
|
||||
};
|
||||
};
|
||||
|
||||
signing = {
|
||||
gpgPath = "path-to-gpg";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "John Doe";
|
||||
userEmail = "user@example.org";
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
email = "user@example.org";
|
||||
};
|
||||
};
|
||||
|
||||
signing = {
|
||||
signer = "path-to-ssh";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "John Doe";
|
||||
userEmail = "user@example.org";
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
email = "user@example.org";
|
||||
};
|
||||
};
|
||||
|
||||
signing = {
|
||||
signer = "path-to-gpg";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "John Doe";
|
||||
userEmail = "user@example.org";
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
email = "user@example.org";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
|
|
|
|||
|
|
@ -29,16 +29,20 @@ in
|
|||
{
|
||||
enable = true;
|
||||
package = pkgs.gitMinimal;
|
||||
aliases = {
|
||||
a1 = "foo";
|
||||
a2 = "bar";
|
||||
escapes = ''"\n '';
|
||||
};
|
||||
extraConfig = {
|
||||
settings = {
|
||||
alias = {
|
||||
a1 = "foo";
|
||||
a2 = "bar";
|
||||
escapes = ''"\n '';
|
||||
};
|
||||
extra = {
|
||||
name = "value";
|
||||
multiple = [ 1 ];
|
||||
};
|
||||
user = {
|
||||
email = "user@example.org";
|
||||
name = "John Doe";
|
||||
};
|
||||
};
|
||||
ignores = [
|
||||
"*~"
|
||||
|
|
@ -66,13 +70,10 @@ in
|
|||
key = "00112233445566778899AABBCCDDEEFF";
|
||||
signByDefault = true;
|
||||
};
|
||||
userEmail = "user@example.org";
|
||||
userName = "John Doe";
|
||||
lfs.enable = true;
|
||||
}
|
||||
|
||||
{
|
||||
aliases.a2 = lib.mkForce "baz";
|
||||
settings.alias.a2 = lib.mkForce "baz";
|
||||
settings."extra \"backcompat.with.dots\"".previously = "worked";
|
||||
settings.extra.boolean = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue