home-manager/horsch/github.nix

43 lines
602 B
Nix

{
pkgs,
lib,
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"gh-copilot"
];
home.packages = with pkgs; [
delta
];
programs = {
gh = {
enable = true;
settings = {
git_protocol = "ssh";
};
extensions = with pkgs; [
gh-copilot
gh-dash
];
};
gh-dash = {
enable = true;
settings = {
defaults = {
preview = {
open = true;
width = 64;
};
};
pager.diff = "delta";
};
};
};
}