summaryrefslogtreecommitdiff
path: root/wrappers/jujutsu
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-03-24 14:35:09 +0100
committerIsabella Bastaja <isabella@sorre.xyz>2026-03-24 14:41:26 +0100
commit0c5c878754d83620b32abfbf2fe53b557a356e8f (patch)
treecedd94feb695ae199ea03f78b880d9b91ff3b15d /wrappers/jujutsu
parent3613c8d67802a9827e00bc9213e8ee79413e4f0e (diff)
wrappers: wrap jujutsu
Diffstat (limited to 'wrappers/jujutsu')
-rw-r--r--wrappers/jujutsu/config.nix35
-rw-r--r--wrappers/jujutsu/default.nix12
2 files changed, 47 insertions, 0 deletions
diff --git a/wrappers/jujutsu/config.nix b/wrappers/jujutsu/config.nix
new file mode 100644
index 0000000..44021a0
--- /dev/null
+++ b/wrappers/jujutsu/config.nix
@@ -0,0 +1,35 @@
+{
+ user = {
+ email = "isabella@sorre.xyz";
+ name = "Isabella Bastaja";
+ };
+ ui.paginate = "never";
+ # signing = {
+ # behavior = "own";
+ # backend = "gpg";
+ # key = "isabella@sorre.xyz";
+ # backends.gpg.allow-expired-keys = false;
+ # };
+ git = {
+ # sign-on-push = true;
+ private-commits = "description(glob:'private:*')";
+ write-change-id-header = true;
+ };
+
+ # `jj l` shows commits on the working-copy commit's (anonymous) branch
+ # compared to the `main` branch
+ aliases.l = [
+ "log"
+ "-r"
+ "(main..@):: | (main..@)-"
+ ];
+
+ aliases.tug = [
+ "bookmark"
+ "move"
+ "--from"
+ "heads(::@- & bookmarks())"
+ "--to"
+ "@-"
+ ];
+}
diff --git a/wrappers/jujutsu/default.nix b/wrappers/jujutsu/default.nix
new file mode 100644
index 0000000..3324c39
--- /dev/null
+++ b/wrappers/jujutsu/default.nix
@@ -0,0 +1,12 @@
+{ pkgs, ... }:
+let
+ tomlFormat = pkgs.formats.toml { };
+ config = import ./config.nix;
+ tomlConfig = tomlFormat.generate "jujutsu-config" config;
+in
+{
+ wrappers.jujutsu = {
+ basePackage = pkgs.jujutsu;
+ env.JJ_CONFIG.value = tomlConfig;
+ };
+}