jj log revset

This commit is contained in:
iofq 2025-06-10 21:40:40 -05:00
parent 5d7ab7c414
commit bf9b9eaafa
No known key found for this signature in database
GPG key ID: ECF3B2DA38BF7183
9 changed files with 2585 additions and 8 deletions

2493
.aider.chat.history.md Normal file

File diff suppressed because it is too large Load diff

63
.aider.input.history Normal file
View file

@ -0,0 +1,63 @@
# 2025-06-03 01:43:42.121312
+no
# 2025-06-03 01:44:27.240992
+turn home-manager/shared/wayland into a proper nix module with an enable option
# 2025-06-03 01:44:36.865575
+/models
# 2025-06-03 01:47:42.074524
+0528
# 2025-06-03 01:47:50.370737
+/models 0528
# 2025-06-03 01:47:54.475226
+/models deepseek
# 2025-06-03 01:48:14.194735
+/models free
# 2025-06-03 01:48:25.146871
+/model openrouter/deepseek/deepseek-r1:free
# 2025-06-03 01:48:29.778686
+turn home-manager/shared/wayland into a proper nix module with an enable option
# 2025-06-03 01:49:15.946800
+turn home-manager/shared/wayland/alacritty/default.nix into a proper nix module with an enable option
# 2025-06-03 01:49:18.378542
+Y
# 2025-06-03 01:51:09.747592
+how would i integrate that module in home-manager/t14/home.nix?
# 2025-06-03 01:51:11.250817
+y
# 2025-06-03 02:02:23.802624
+create a nix module for home-manager/shared/programs/shell/git.nix, home-manager/shared/programs/shell/llm.nix, and home-manager/shared/programs/shell/tmux.nix, and home-manager/shared/programs/shell/fish/default.nix, including an enable option. then, import them in home-manager/t14/home.nix and enable them
# 2025-06-03 02:02:25.881078
+A
# 2025-06-03 02:04:06.643518
+y
# 2025-06-03 02:06:18.967080
+can you update home-manager/shared/programs/shell.nix and the imported files to use lib.mkEnableOption for each module? i.e i want git.enable = true, not programs.shell.git.enable
# 2025-06-03 02:08:58.825429
+can you update the /programs/ files to use lib.mkEnableOption for each module? similar to how home-manager/shared/wayland/alacritty/default.nix is setup i.e i want git.enable = true, not programs.shell.git.enable
# 2025-06-03 02:09:00.961212
+Y
# 2025-06-03 02:11:05.315129
+y
# 2025-06-03 02:12:57.508779
+n

Binary file not shown.

View file

@ -48,8 +48,8 @@
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [ overlays = [
inputs.nvim.overlays.default
inputs.neovim-nightly-overlay.overlays.default inputs.neovim-nightly-overlay.overlays.default
inputs.nvim.overlays.default
]; ];
}; };
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system}); eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
@ -59,7 +59,7 @@
homeConfigurations = import ./home-manager {inherit inputs pkgs attrs;}; homeConfigurations = import ./home-manager {inherit inputs pkgs attrs;};
checks = { checks = {
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run { pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
src = ./.; src = inputs.self;
hooks = { hooks = {
treefmt.enable = true; treefmt.enable = true;
treefmt.package = treefmtEval.${system}.config.build.wrapper; treefmt.package = treefmtEval.${system}.config.build.wrapper;

View file

@ -4,11 +4,11 @@
attrs, attrs,
... ...
}: { }: {
inputs.home-manager.useGlobalPkgs = true;
"e" = inputs.home-manager.lib.homeManagerConfiguration { "e" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs attrs; inherit inputs attrs;
useGlobalPkgs = true;
host = { host = {
hostName = "t14"; hostName = "t14";
inherit (attrs) username; inherit (attrs) username;
@ -20,10 +20,10 @@
]; ];
}; };
"minimal" = inputs.home-manager.lib.homeManagerConfiguration { "minimal" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs attrs; inherit inputs attrs;
targets.genericLinux.enable = true; targets.genericLinux.enable = true;
useGlobalPkgs = true;
host = { host = {
hostName = "e"; hostName = "e";
inherit (attrs) username; inherit (attrs) username;

View file

@ -77,6 +77,9 @@
snapshot = { snapshot = {
max-new-file-size = "10MiB"; max-new-file-size = "10MiB";
}; };
revsets = {
log = "ancestors(reachable(@,trunk()..),2) | trunk()";
};
aliases = { aliases = {
tug = ["bookmark" "move" "--from" "heads(::@- & bookmarks())" "--to" "@"]; tug = ["bookmark" "move" "--from" "heads(::@- & bookmarks())" "--to" "@"];
}; };

View file

@ -79,6 +79,8 @@
"$mod, Space, exec, ${pkgs.wofi}/bin/wofi --show run" "$mod, Space, exec, ${pkgs.wofi}/bin/wofi --show run"
"$mod, Escape, exec, ${pkgs.wlogout}/bin/wlogout" "$mod, Escape, exec, ${pkgs.wlogout}/bin/wlogout"
"$mod, t, togglefloating" "$mod, t, togglefloating"
"$mod, g, togglegroup"
"$mod, b, exec, pkill -SIGUSR1 waybar"
"$mod, bracketleft, exec, grimshot --notify save area /tmp/scrot-$(date \"+%Y-%m-%d\"T\"%H:%M:%S\").png" "$mod, bracketleft, exec, grimshot --notify save area /tmp/scrot-$(date \"+%Y-%m-%d\"T\"%H:%M:%S\").png"
"$mod, bracketright, exec, grimshot --notify copy area" "$mod, bracketright, exec, grimshot --notify copy area"
"$mod SHIFT, q, exec, swaylock" "$mod SHIFT, q, exec, swaylock"
@ -97,10 +99,11 @@
"$mod, l, movefocus, r" "$mod, l, movefocus, r"
"$mod, k, movefocus, u" "$mod, k, movefocus, u"
"$mod, j, movefocus, d" "$mod, j, movefocus, d"
"$mod SHIFT, h, movewindow, l" "$mod, n, changegroupactive, f"
"$mod SHIFT, l, movewindow, r" "$mod SHIFT, h, movewindoworgroup, l"
"$mod SHIFT, k, movewindow, u" "$mod SHIFT, l, movewindoworgroup, r"
"$mod SHIFT, j, movewindow, d" "$mod SHIFT, k, movewindoworgroup, u"
"$mod SHIFT, j, movewindoworgroup, d"
"$mod, COMMA, focusmonitor, l" "$mod, COMMA, focusmonitor, l"
"$mod, PERIOD, focusmonitor, r" "$mod, PERIOD, focusmonitor, r"
"$mod SHIFT, COMMA, movewindow, mon:l" "$mod SHIFT, COMMA, movewindow, mon:l"

View file

@ -26,6 +26,7 @@
mpv mpv
piper piper
calibre calibre
yt-dlp
# sysutils # sysutils
appimage-run appimage-run

View file

@ -120,6 +120,20 @@ in {
}; };
}; };
ratbagd.enable = true; # Logitech ratbagd.enable = true; # Logitech
keyd = {
enable = true;
keyboards = {
default = {
ids = ["*"];
settings = {
main = {
pause = "timeout(esc, 150, space)";
scrolllock = "layer(shift)";
};
};
};
};
};
udev.packages = [ udev.packages = [
pkgs.ledger-udev-rules pkgs.ledger-udev-rules
pkgs.trezor-udev-rules pkgs.trezor-udev-rules