fixes and formatting

This commit is contained in:
Henry Hiles 2025-09-23 09:17:26 -04:00
commit 80cf48f1e8
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
71 changed files with 739 additions and 1103 deletions

View file

@ -2,7 +2,8 @@
pkgs,
lib,
...
}: {
}:
{
programs.git = {
enable = true;
config = {
@ -12,9 +13,9 @@
signingKey = builtins.elemAt (import ../../secrets/keys.nix) 0;
};
url = {
"git@github.com:".insteadOf = ["https://github.com"];
"git@codeberg.org:".insteadOf = ["https://codeberg.org"];
"git@git.federated.nexus:".insteadOf = ["https://git.federated.nexus"];
"git@github.com:".insteadOf = [ "https://github.com" ];
"git@codeberg.org:".insteadOf = [ "https://codeberg.org" ];
"git@git.federated.nexus:".insteadOf = [ "https://git.federated.nexus" ];
};
init.defaultBranch = "main";
commit.gpgsign = true;
@ -23,16 +24,18 @@
};
};
environment = {
systemPackages = [pkgs.gh];
shellAliases = let
gitExe = lib.meta.getExe pkgs.git;
ghExe = lib.meta.getExe pkgs.gh;
in {
clone = "${ghExe} repo clone";
create = "${ghExe} repo create";
systemPackages = [ pkgs.gh ];
shellAliases =
let
gitExe = lib.meta.getExe pkgs.git;
ghExe = lib.meta.getExe pkgs.gh;
in
{
clone = "${ghExe} repo clone";
create = "${ghExe} repo create";
push = "${gitExe} push";
commit = "${gitExe} commit -am";
};
push = "${gitExe} push";
commit = "${gitExe} commit -am";
};
};
}