feat: add jujutsu VCS
This commit is contained in:
45
modules/cli/vcs/jj.nix
Normal file
45
modules/cli/vcs/jj.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userfullname,
|
||||
useremail,
|
||||
...
|
||||
}:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "jujutsu";
|
||||
optionPath = [
|
||||
"cli"
|
||||
"vcs"
|
||||
"jj"
|
||||
];
|
||||
extraConfig = {
|
||||
my.home = {
|
||||
programs.jujutsu = {
|
||||
settings = {
|
||||
user = {
|
||||
name = "${userfullname}";
|
||||
email = "${useremail}";
|
||||
};
|
||||
ui = {
|
||||
graph.style = "square";
|
||||
default-command = "status";
|
||||
};
|
||||
};
|
||||
};
|
||||
/* programs.zsh.initContent = lib.mkAfter ''
|
||||
fpath+=${
|
||||
pkgs.fetchFromGitHub {
|
||||
owner = "rkh";
|
||||
repo = "zsh-jj";
|
||||
rev = "b6453d6ff5d233d472e5088d066c6469eb05c71b";
|
||||
hash = "sha256-GDHTp53uHAcyVG+YI3Q7PI8K8M3d3i2+C52zxnKbSmw=";
|
||||
}
|
||||
}/functions
|
||||
zstyle ':vcs_info:*' enable jj
|
||||
''; */
|
||||
home.packages = [ pkgs.lazyjj ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user