configs/git: update config to use list of attrs to preserve order
This commit is contained in:
parent
3f92b0f7ce
commit
4ae2e7e936
@ -4,9 +4,10 @@
|
|||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
config = {
|
config = [
|
||||||
init = { defaultBranch = "main"; };
|
{ init = { defaultBranch = "main"; }; }
|
||||||
|
|
||||||
|
{
|
||||||
user = {
|
user = {
|
||||||
name = "Aaron Bieber";
|
name = "Aaron Bieber";
|
||||||
email = "aaron@bolddaemon.com";
|
email = "aaron@bolddaemon.com";
|
||||||
@ -15,20 +16,24 @@
|
|||||||
else
|
else
|
||||||
"35863350BFEAC101DB1A4AF01F81112D62A9ADCE";
|
"35863350BFEAC101DB1A4AF01F81112D62A9ADCE";
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
branch = { sort = "-committerdate"; };
|
{ branch = { sort = "-committerdate"; }; }
|
||||||
|
{
|
||||||
alias = {
|
alias = {
|
||||||
log = "log --color=never";
|
log = "log --color=never";
|
||||||
diff = "diff --color=always";
|
diff = "diff --color=always";
|
||||||
pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"'';
|
pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"'';
|
||||||
fetch-pr =
|
fetch-pr = ''
|
||||||
''"!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"'';
|
"!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 = {
|
color = {
|
||||||
branch = false;
|
branch = false;
|
||||||
interactive = false;
|
interactive = false;
|
||||||
@ -36,17 +41,21 @@
|
|||||||
status = false;
|
status = false;
|
||||||
ui = 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 = {
|
url = {
|
||||||
"ssh://git@github.com/" = { insteadOf = "https://github.com/"; };
|
"ssh://git@github.com/" = { insteadOf = "https://github.com/"; };
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
sendmail = {
|
sendmail = {
|
||||||
smtpserver = "mail.messagingengine.com";
|
smtpserver = "mail.messagingengine.com";
|
||||||
smtpuser = "qbit@fastmail.com";
|
smtpuser = "qbit@fastmail.com";
|
||||||
@ -56,14 +65,11 @@
|
|||||||
cc = "aaron@bolddaemon.com";
|
cc = "aaron@bolddaemon.com";
|
||||||
confirm = "auto";
|
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