浏览代码

old starship prompt and combining github and git

Zander Hawke 1 年之前
父节点
当前提交
a6cc053b68
共有 3 个文件被更改,包括 16 次插入4 次删除
  1. 0 1
      home/features/cli/default.nix
  2. 16 0
      home/features/cli/git.nix
  3. 0 3
      home/features/cli/starship.nix

+ 0 - 1
home/features/cli/default.nix

@@ -6,7 +6,6 @@
     ./fish.nix
     ./fzf.nix
     ./git.nix
-    ./github.nix
     ./gnupg.nix
     ./nushell.nix
     ./ssh.nix

+ 16 - 0
home/features/cli/git.nix

@@ -3,13 +3,29 @@
   home.packages = [
     pkgs.git
     pkgs.git-crypt
+    pkgs.codeberg-cli
   ];
 
+  programs.gh.enable = true;
+
   programs.git = {
     enable = true;
     userName = "Thomas Stachl";
     userEmail = "[email protected]";
 
+    includes = [{
+      condition = "gitdir/i:~/workspace/aesir/**";
+      contents = {
+        core.sshCommand = "ssh -i ~/.ssh/id_aesirdev";
+        user = {
+          email = "[email protected]";
+          name = "Æsir Dev";
+          signingKey = "58145313C9636027";
+        };
+        commit.gpgSign = true;
+      };
+    }];
+
     signing = {
       key = "ED5EAAA8E895B23A";
       signByDefault = true;

+ 0 - 3
home/features/cli/starship.nix

@@ -6,9 +6,6 @@
     enableTransience = true;
 
     settings = {
-      character.success_symbol = "[➜](bold green)";
-      character.error_symbol = "[✗](bold red)";
-
       shell = {
         disabled = false;
         fish_indicator = "🐟";