flake update,zed config update, git and jj tweaks

This commit is contained in:
Salar Rahmanian 2024-12-18 22:15:42 -08:00
parent f4ac5a2006
commit 1f636db477
7 changed files with 102 additions and 76 deletions

View file

@ -28,11 +28,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734093295, "lastModified": 1736013363,
"narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=", "narHash": "sha256-P4lsS2Y5GzBfC8OfXtD/xWEucX6oHGTjOzjEjEJbXfc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8", "rev": "0d7908bd09165db6699908b7e3970f137327cbf0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -48,11 +48,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733570843, "lastModified": 1736002328,
"narHash": "sha256-sQJAxY1TYWD1UyibN/FnN97paTFuwBw3Vp3DNCyKsMk=", "narHash": "sha256-anoVvML2D+nLfHlBfhEcCMjTou/9SRrrlqQN+Ug39ws=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "a35b08d09efda83625bef267eb24347b446c80b8", "rev": "a464e5ba8cfb10a81599dbd422f30f5d37997916",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -63,11 +63,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1734119587, "lastModified": 1735834308,
"narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=", "narHash": "sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5", "rev": "6df24922a1400241dae323af55f30e4318a6ca65",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -79,11 +79,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1734119587, "lastModified": 1735834308,
"narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=", "narHash": "sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5", "rev": "6df24922a1400241dae323af55f30e4318a6ca65",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -100,11 +100,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1734313665, "lastModified": 1735998325,
"narHash": "sha256-aRhBY3xl7CVlXXtMI7ryjscdsoJItw75hhQJ7sZK49g=", "narHash": "sha256-4Zh6FUTQSbAfalbPyrzRTH0GTapf9/qlCEs2OaejFJQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "3d3b39dbfb201d65fb8c2ee2a0cf6b1ada87a8dc", "rev": "867df4df63ec4f24b79aa6ea97805e2d5efd376a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -28,7 +28,7 @@
config: config:
{ ... }: { ... }:
{ {
nixpkgs.overlays = [ nur.overlay ]; nixpkgs.overlays = [ nur.overlays.default ];
imports = [ imports = [
config config
]; ];

View file

@ -37,9 +37,9 @@
cmake cmake
coursier coursier
curlFull curlFull
delta
deno deno
devenv devenv
difftastic
discord discord
dua dua
fd fd
@ -170,6 +170,7 @@
enable = true; enable = true;
settings = { settings = {
theme = "tokyonight"; theme = "tokyonight";
editor.file-picker.hidden = false;
}; };
}; };
@ -185,48 +186,6 @@
enable = true; enable = true;
}; };
programs.jujutsu = {
enable = true;
settings = {
signing = {
key = "~/.ssh/id_ed25519.pub";
};
user = {
name = "Salar Rahmanian";
email = "code@softinio.com";
};
aliases = {
l = [
"log"
"-r"
"(main..@):: | (main..@)-"
];
};
ui = {
diff.format = "git";
diff.tool = [
"delta"
"--color-only"
"--hyperlinks"
"--line-numbers"
"--side-by-side"
"$left"
"$right"
];
editor = "nvim";
merge-editor = [
"meld"
"$left"
"$base"
"$right"
"-o"
"$output"
];
pager = "delta";
};
};
};
programs.lazygit = { programs.lazygit = {
enable = true; enable = true;
}; };

View file

@ -2,6 +2,7 @@
./broot ./broot
./fish ./fish
./git ./git
./jujutsu
./tmux ./tmux
./wezterm ./wezterm
./vscode ./vscode

View file

@ -4,16 +4,15 @@ let
gitConfig = { gitConfig = {
core = { core = {
editor = "nvim"; editor = "nvim";
pager = "delta";
};
delta = {
"line-numbers" = true;
"hyperlinks" = true;
"side-by-side" = true;
}; };
diff = { diff = {
colorMoved = "default"; colorMoved = "default";
tool = "nvim"; external = "difft";
tool = "difftastic";
};
difftool.difftastic = {
cmd = "difft \"$MERGED\" \"$LOCAL\" \"abcdef1\" \"100644\" \"$REMOTE\" \"abcdef2\" \"100644\"";
prompt = false;
}; };
difftool.nvim = { difftool.nvim = {
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""; cmd = "nvim -d \"$LOCAL\" \"$REMOTE\"";
@ -21,24 +20,24 @@ let
}; };
fetch.prune = true; fetch.prune = true;
init.defaultBranch = "main"; init.defaultBranch = "main";
interactive = { merge.conflictstyle = "zdiff3";
diffFilter = "delta --color-only";
};
merge.conflictstyle = "diff3";
merge.tool = "nvim"; merge.tool = "nvim";
mergetool.nvim = { mergetool.nvim = {
cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\""; cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"";
prompt = false; prompt = false;
keepBackup = false; keepBackup = false;
}; };
# url = { pager = {
# "git@github.com:" = { difftool = true;
# insteadOf = "https://github.com/"; };
# };
# };
pull = { pull = {
rebase = true; rebase = true;
}; };
url = {
"git@github.com:" = {
insteadOf = "https://github.com/";
};
};
}; };
myAliases = { myAliases = {
ci = "commit"; ci = "commit";
@ -53,7 +52,6 @@ let
st = "status"; st = "status";
}; };
myIgnores = [ myIgnores = [
"*~"
".DS_Store" ".DS_Store"
"*.bloop" "*.bloop"
".direnv/" ".direnv/"

View file

@ -0,0 +1,44 @@
{ ... }:
let
MyAliases = {
l = [
"log"
"-r"
"(main..@):: | (main..@)-"
];
};
in
{
programs.jujutsu = {
enable = true;
settings = {
aliases = MyAliases;
signing = {
key = "~/.ssh/id_ed25519.pub";
};
ui = {
diff.format = "git";
diff.tool = [
"difft"
"--color=always"
"$left"
"$right"
];
editor = "nvim";
merge-editor = [
"meld"
"$left"
"$base"
"$right"
"-o"
"$output"
];
pager = "less -FRX";
};
user = {
name = "Salar Rahmanian";
email = "code@softinio.com";
};
};
};
}

View file

@ -16,9 +16,33 @@ in
enable = true; enable = true;
extensions = myextensions; extensions = myextensions;
userSettings = { userSettings = {
assistant = {
version = "2";
default_model = {
provider = "copilot_chat";
model = "gpt-4o";
};
};
features = { features = {
copilot = true; copilot = true;
}; };
language_models = {
openai = {
available_models = [
{
provider = "openai";
name = "gpt-4o";
max_tokens = 128000;
}
{
provider = "openai";
name = "gpt-4o-mini";
max_tokens = 128000;
}
];
version = "2";
};
};
telemetry.metrics = false; telemetry.metrics = false;
theme = "Andromeda"; theme = "Andromeda";
vim_mode = true; vim_mode = true;