/ modules / git.nix
git.nix
 1  {pkgs, ...}: {
 2    home.packages = with pkgs; [
 3      lazygit
 4      lazyjj
 5      jujutsu
 6      radicle-node
 7    ];
 8    programs = {
 9      jujutsu = {
10        enable = true;
11        settings = {
12          ui = {
13            diff-editor = ["nvim" "-c" "DiffEditor $left $right $output"];
14          };
15        };
16      };
17      git = {
18        enable = true;
19        difftastic.enable = true;
20        ignores = [
21          "*~"
22          "*.swp"
23        ];
24        lfs.enable = true;
25        maintenance = {
26          enable = true;
27          repositories = [
28            "$HOME/projects/pocketsizefund/pocketsizefund"
29          ];
30        };
31      };
32      gh = {
33        enable = true;
34        settings = {
35          git_protocol = "ssh";
36          prompt = "enabled";
37        };
38      };
39    };
40  }