49 lines
788 B
Nix
49 lines
788 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
home = config.home.homeDirectory;
|
|
in
|
|
{
|
|
home.packages = with pkgs; [
|
|
gh
|
|
];
|
|
|
|
programs.git = {
|
|
enable = true;
|
|
lfs = {
|
|
enable = true;
|
|
};
|
|
userEmail = "rs@rs.ht";
|
|
userName = "Ray Andrew";
|
|
signing = {
|
|
key = "${home}/.ssh/id_ed25519.pub";
|
|
signByDefault = true;
|
|
signer = "";
|
|
};
|
|
ignores = [
|
|
".DS_Store"
|
|
"*~"
|
|
"*.swp"
|
|
];
|
|
extraConfig = {
|
|
gpg.format = "ssh";
|
|
core.editor = "emacs";
|
|
credential.helper = "store --file ${home}/.git-credentials";
|
|
pull.rebase = true;
|
|
};
|
|
};
|
|
|
|
# programs.gh = {
|
|
# enable = true;
|
|
# settings = {
|
|
# git_protocol = "ssh";
|
|
# };
|
|
# extensions = with pkgs; [
|
|
# gh-copilot
|
|
# ];
|
|
# };
|
|
}
|