Skip to content

Commit

Permalink
feat(home): use git-absorb
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Oct 7, 2024
1 parent 446f9d2 commit d032c80
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/home/profiles/git/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ in
};
}

(mkIf cfg.imerge.enable { home.packages = [ pkgs.git-imerge ]; })

(mkIf cfg.github.enable {
programs = {
gh.enable = true;
Expand All @@ -111,5 +109,12 @@ in
};
};
})

{
home.packages = mkMerge [
(mkIf cfg.absorb.enable [ pkgs.git-absorb ])
(mkIf cfg.imerge.enable [ pkgs.git-imerge ])
];
}
]);
}
1 change: 1 addition & 0 deletions modules/home/profiles/git/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in
default = true;
};

absorb.enable = mkEnableOption "install git-absorb package";
imerge.enable = mkEnableOption "install git-imerge package";

github = {
Expand Down
2 changes: 2 additions & 0 deletions modules/home/profiles/user/terje/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ in
shell.enable = mkDefault true;
};

git.absorb.enable = mkDefault true;

user.terje = {
shell.enable = mkDefault true;
editor.emacs.enable = mkDefault true;
Expand Down

0 comments on commit d032c80

Please sign in to comment.