Fix aliases, nh, etc

This commit is contained in:
Henry Hiles 2025-05-22 21:19:25 -04:00
parent 471dfd605e
commit 660149f46b
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
16 changed files with 81 additions and 60 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
programs.git = {
enable = true;
config = {
@ -17,5 +21,17 @@
gpg.format = "ssh";
};
};
environment.systemPackages = [pkgs.gh];
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";
push = "${gitExe} push";
commit = "${gitExe} commit -am";
};
};
}