configs/git: update config to use list of attrs to preserve order
This commit is contained in:
parent
3f92b0f7ce
commit
4ae2e7e936
108
configs/git.nix
108
configs/git.nix
@ -4,66 +4,72 @@
|
|||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
config = {
|
config = [
|
||||||
init = { defaultBranch = "main"; };
|
{ init = { defaultBranch = "main"; }; }
|
||||||
|
|
||||||
user = {
|
{
|
||||||
name = "Aaron Bieber";
|
user = {
|
||||||
email = "aaron@bolddaemon.com";
|
name = "Aaron Bieber";
|
||||||
signingKey = if isUnstable then
|
email = "aaron@bolddaemon.com";
|
||||||
"key::sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHrYWbbgBkGcOntDqdMaWVZ9xn+dHM+Ap6s1HSAalL28AAAACHNzaDptYWlu"
|
signingKey = if isUnstable then
|
||||||
else
|
"key::sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHrYWbbgBkGcOntDqdMaWVZ9xn+dHM+Ap6s1HSAalL28AAAACHNzaDptYWlu"
|
||||||
"35863350BFEAC101DB1A4AF01F81112D62A9ADCE";
|
else
|
||||||
};
|
"35863350BFEAC101DB1A4AF01F81112D62A9ADCE";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
branch = { sort = "-committerdate"; };
|
{ branch = { sort = "-committerdate"; }; }
|
||||||
alias = {
|
{
|
||||||
log = "log --color=never";
|
alias = {
|
||||||
diff = "diff --color=always";
|
log = "log --color=never";
|
||||||
pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"'';
|
diff = "diff --color=always";
|
||||||
fetch-pr =
|
pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"'';
|
||||||
''"!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"'';
|
fetch-pr = ''
|
||||||
};
|
"!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"'';
|
||||||
push = { default = "current"; };
|
};
|
||||||
|
}
|
||||||
|
{ push = { default = "current"; }; }
|
||||||
|
|
||||||
gpg = if isUnstable then { format = "ssh"; } else { };
|
{ gpg = if isUnstable then { format = "ssh"; } else { }; }
|
||||||
commit = if isUnstable then { gpgsign = true; } else { };
|
{ commit = if isUnstable then { gpgsign = true; } else { }; }
|
||||||
|
|
||||||
color = {
|
{
|
||||||
branch = false;
|
color = {
|
||||||
interactive = false;
|
branch = false;
|
||||||
log = false;
|
interactive = false;
|
||||||
status = false;
|
log = false;
|
||||||
ui = false;
|
status = false;
|
||||||
};
|
ui = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
safe = { directory = "/home/qbit/src/nix-conf"; };
|
{ safe = { directory = "/home/qbit/src/nix-conf"; }; }
|
||||||
|
|
||||||
transfer = { fsckobjects = true; };
|
{ transfer = { fsckobjects = true; }; }
|
||||||
fetch = { fsckobjects = true; };
|
{ fetch = { fsckobjects = true; }; }
|
||||||
github = { user = "qbit"; };
|
{ github = { user = "qbit"; }; }
|
||||||
|
|
||||||
url = {
|
{
|
||||||
"ssh://git@github.com/" = { insteadOf = "https://github.com/"; };
|
url = {
|
||||||
};
|
"ssh://git@github.com/" = { insteadOf = "https://github.com/"; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
sendmail = {
|
{
|
||||||
smtpserver = "mail.messagingengine.com";
|
sendmail = {
|
||||||
smtpuser = "qbit@fastmail.com";
|
smtpserver = "mail.messagingengine.com";
|
||||||
smtpauth = "PLAIN";
|
smtpuser = "qbit@fastmail.com";
|
||||||
smtpencryption = "tls";
|
smtpauth = "PLAIN";
|
||||||
smtpserverport = 587;
|
smtpencryption = "tls";
|
||||||
cc = "aaron@bolddaemon.com";
|
smtpserverport = 587;
|
||||||
confirm = "auto";
|
cc = "aaron@bolddaemon.com";
|
||||||
};
|
confirm = "auto";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pull = { rebase = false; };
|
{ pull = { rebase = false; }; }
|
||||||
};
|
{ include = { path = "~/work/git/gitconfig"; }; }
|
||||||
extraConfig = ''
|
];
|
||||||
|
|
||||||
[include]
|
|
||||||
path = ~/work/git/gitconfig
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
flake.lock
generated
8
flake.lock
generated
@ -487,17 +487,17 @@
|
|||||||
},
|
},
|
||||||
"xinDev": {
|
"xinDev": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671573752,
|
"lastModified": 1671589301,
|
||||||
"narHash": "sha256-ZKWE45bhj/6DSaDL7+/kHNIycYDn2g5qLY1VeK+89cc=",
|
"narHash": "sha256-A9kIPTeI5gM2NsOrT3V2egYLJQT7Zzx+/j6sgcXCNo0=",
|
||||||
"owner": "qbit",
|
"owner": "qbit",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "13ff4b1299d5d76c83854f571463deb89f5c0954",
|
"rev": "f9f4444cdf01270c5e463e84e02cc225d8208476",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "qbit",
|
"owner": "qbit",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "13ff4b1299d5d76c83854f571463deb89f5c0954",
|
"rev": "f9f4444cdf01270c5e463e84e02cc225d8208476",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
url = "git+ssh://xin-secrets-ro/qbit/xin-secrets.git?ref=main";
|
url = "git+ssh://xin-secrets-ro/qbit/xin-secrets.git?ref=main";
|
||||||
};
|
};
|
||||||
|
|
||||||
xinDev.url = "github:qbit/nixpkgs/13ff4b1299d5d76c83854f571463deb89f5c0954";
|
xinDev.url = "github:qbit/nixpkgs/f9f4444cdf01270c5e463e84e02cc225d8208476";
|
||||||
unstable.url = "github:NixOS/nixpkgs";
|
unstable.url = "github:NixOS/nixpkgs";
|
||||||
unstableSmall.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
unstableSmall.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||||
|
|
||||||
@ -74,9 +74,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, xinDev, unstable, unstableSmall, stable, oldStable, nixos-hardware
|
outputs = { self, xinDev, unstable, unstableSmall, stable, oldStable
|
||||||
, reform, sshKnownHosts, microca, gostart, xintray, tsvnstat, taskobs
|
, nixos-hardware, reform, sshKnownHosts, microca, gostart, xintray, tsvnstat
|
||||||
, mcchunkie, gqrss, darwin, xin-secrets, talon, peerix, ... }@inputs:
|
, taskobs, mcchunkie, gqrss, darwin, xin-secrets, talon, peerix, ...
|
||||||
|
}@inputs:
|
||||||
let
|
let
|
||||||
supportedSystems =
|
supportedSystems =
|
||||||
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user