diff --git a/horsch/github.nix b/horsch/github.nix index 2015359..8841ca4 100644 --- a/horsch/github.nix +++ b/horsch/github.nix @@ -1,11 +1,21 @@ -{ ... }: +{ pkgs, lib, ... }: { - programs.gh = { - enable = true; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "gh-copilot" + ]; - settings = { - git_protocol = "ssh"; + programs = { + gh = { + enable = true; + + settings = { + git_protocol = "ssh"; + }; + + extensions = with pkgs; [ + gh-copilot + ]; }; }; }