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

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

View File

@ -18,6 +18,7 @@
hive.doom.withShellPkgs = true;
hive.doom.withCXXPkgs = true;
hive.doom.withPythonPkgs = true;
hive.jj.enable = true;
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release

View File

@ -1,6 +1,5 @@
{
config,
pkgs,
lib,
...
}: {
@ -49,6 +48,7 @@
hive.doom.withNixPkgs = true;
hive.doom.withShellPkgs = true;
hive.doom.withPythonPkgs = true;
hive.jj.enable = true;
# Make session variables available in systemd units
# SEE: https://github.com/nix-community/home-manager/pull/5543
@ -101,17 +101,4 @@
key = "4000EB35E1AE0F07";
};
};
programs.jujutsu = {
enable = true;
settings = {
user = {
name = config.programs.git.userName;
email = config.programs.git.userEmail;
};
ui = {
diff-formatter = ["${pkgs.difftastic}/bin/difft" "--color=always" "$left" "$right"];
};
};
};
}

View File

@ -33,6 +33,7 @@
hive.themes.layan.enable = true;
hive.yubikey.enable = true;
hive.zsh.enable = true;
hive.jj.enable = true;
# Make session variables available in systemd units
# SEE: https://github.com/nix-community/home-manager/pull/5543

View File

@ -35,21 +35,22 @@
++ lib.optionals isHM [
# pure home-manager modules
./home/doom
./home/firefox.nix
./home/flameshot.nix
./home/hyprland
./home/jj.nix
./home/kdeconnect.nix
./home/kitty
./home/nextcloud
./home/plasma.nix
./home/ranger
./home/ssh.nix
./home/swaync
./home/themes/layan.nix
./home/waybar
./home/wlogout
./home/wofi
./home/zsh
./home/firefox.nix
./home/flameshot.nix
./home/kdeconnect.nix
./home/plasma.nix
./home/ssh.nix
./home/yubikey.nix
./home/themes/layan.nix
./home/zsh
];
}

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