Home Gen546 @ 2025-10-23-16:42 by jonas@comfy-station

This commit is contained in:
2025-10-23 16:46:12 +02:00
parent de37b2e868
commit 859d0203b2
6 changed files with 47 additions and 22 deletions

36
modules/home/jj.nix Normal file
View File

@@ -0,0 +1,36 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.hive.jj;
in {
options.hive.jj = {
enable = lib.mkEnableOption "Enable jj vcs";
followGit = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Follow the current git configuration";
};
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
jujutsu
];
programs.jujutsu = {
enable = true;
settings = {
user = lib.optionalAttrs cfg.followGit {
name = config.programs.git.userName;
email = config.programs.git.userEmail;
};
ui = lib.optionalAttrs (cfg.followGit && config.programs.git.difftastic.enable) {
diff-formatter = ["${pkgs.difftastic}/bin/difft" "--color=always" "$left" "$right"];
};
};
};
};
}

View File

@@ -60,7 +60,6 @@ in {
fzf
git
htop
jujutsu
killall
nh
nix-output-monitor