Commit 16b65773bd91

Vincent Demeester <vincent@sbr.pm>
2026-01-21 22:46:57
refactor: isolate GitHub CLI to development machines
- Limit programs.gh to aomi and kyushu only - Remove gh from headless servers (aion, rhea, etc.) - Extract configuration to dedicated gh.nix module Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 78043e9
Changed files (4)
home
common
systems
home/common/shell/gh.nix
@@ -0,0 +1,22 @@
+{ pkgs, ... }:
+{
+  programs.gh = {
+    enable = true;
+    extensions = with pkgs; [
+      gh-copilot
+      gh-dash
+      gh-f
+      gh-poi
+      gh-s
+      gh-news
+    ];
+    settings = {
+      git_protocol = "ssh";
+      prompt = "enabled";
+      editor = "emacsclient -t";
+      aliases = {
+        co = "pr checkout";
+      };
+    };
+  };
+}
home/common/shell/git.nix
@@ -54,25 +54,6 @@ in
     difftastic
   ];
 
-  programs.gh = {
-    enable = true;
-    extensions = with pkgs; [
-      gh-copilot
-      gh-dash
-      gh-f
-      gh-poi
-      gh-s
-      gh-news
-    ];
-    settings = {
-      git_protocol = "ssh";
-      prompt = "enabled";
-      editor = "emacsclient -t";
-      aliases = {
-        co = "pr checkout";
-      };
-    };
-  };
   programs.git = {
     enable = true;
     package = pkgs.git;
systems/aomi/home.nix
@@ -6,6 +6,7 @@
     ../../home/common/dev/containers.nix
     ../../home/common/dev/tektoncd.nix
     ../../home/common/desktop/passage.nix
+    ../../home/common/shell/gh.nix
   ];
   systemd.user.services.syncthing.Install.WantedBy = [ "multi-user.target" ];
 
systems/kyushu/home.nix
@@ -15,6 +15,7 @@ in
     ../../home/common/services/goimapnotify.nix
     ../../home/common/services/mail-monitor.nix
     ../../home/common/services/redhat.nix
+    ../../home/common/shell/gh.nix
   ];
 
   home.file.".gmailctl/config.jsonnet".source = ./config.jsonnet;