Something went wrong. Try again.
nix
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ __findFile, ... }:let githubUsername = "Sharparam"; sessionVariables = { GITHUB_USER = githubUsername; };in{ den.aspects.base = { includes = [ (<den/unfree> [ "github-copilot-cli" ]) ];
homeManager = { pkgs, ... }: { home.sessionVariables = sessionVariables; systemd.user.sessionVariables = sessionVariables;
home.packages = [ pkgs.github-copilot-cli ];
programs = { zsh.sessionVariables = sessionVariables;
git.settings = { github = { user = githubUsername; username = githubUsername; }; hub.protocol = "ssh"; url = { "git@github.com:Sharparam".insteadOf = "https://github.com/Sharparam"; "git@github.com:SharpWoW".insteadOf = "https://github.com/SharpWoW"; "git@github.com:chroma-sdk".insteadOf = "https://github.com/chroma-sdk"; "ssh://git@github.com".pushInsteadOf = "https://github.com"; }; };
gh = { enable = true; gitCredentialHelper = { # enable = lib.mkDefault true; }; settings = { browser = ""; color_labels = "enabled"; editor = ""; git_protocol = "ssh"; http_unix_socket = ""; pager = ""; prompt = "enabled"; aliases = { clone = "repo clone"; co = "pr checkout"; }; }; }; };
# The gh-copilot extension for gh has been deprecated # Now we have to ask the copilot CLI interactively instead # home.shellAliases = # let # gh = "gh"; # in # { # "?" = "${gh} copilot suggest -t shell"; # "??" = "${gh} copilot explain"; # "?e" = "${gh} copilot explain"; # "?g" = "${gh} copilot suggest -t git"; # "?gh" = "${gh} copilot suggest -t gh"; # }; }; };}