From ada1a9448ada0ccb29152474570c6b97d9e94c66 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 25 Mar 2025 08:39:50 +0100 Subject: [PATCH] feat(gh): add gh-copilot --- horsch/github.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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 + ]; }; }; }