Files
nixos-config/home/terminal/software/gh.nix
T
2026-03-31 16:53:11 +02:00

30 lines
619 B
Nix

{pkgs, ...}: let
configFile = "gh/config.yml";
hostsFile = "gh/hosts.yml";
toYAML = (pkgs.formats.yaml {}).generate;
in {
users.users.someone.packages = with pkgs; [
gh
];
xdg.configFile."${configFile}".source = toYAML "config.yml" {
version = 1;
git_protocol = "https";
editor = "nvim";
prompt = "enabled";
prefer_editor_prompt = "disabled";
pager = "less -FR";
aliases = {
co = "pr checkout";
};
http_unix_socket = "";
browser = "zen";
};
xdg.configFile."${hostsFile}".text = ''
github.com:
git_protocol: https
user: someone
'';
}