diff options
| -rw-r--r-- | nix-conf/flake.lock | 46 | ||||
| -rw-r--r-- | nix-conf/overlays/atuin-session-host-filter-unstable.patch | 6 | ||||
| -rw-r--r-- | nix-conf/overlays/atuin-session-host-filter.patch | 36 | ||||
| -rw-r--r-- | nix-conf/overlays/modifications.nix | 2 |
4 files changed, 51 insertions, 39 deletions
diff --git a/nix-conf/flake.lock b/nix-conf/flake.lock index 1c5bd01..8be2d3f 100644 --- a/nix-conf/flake.lock +++ b/nix-conf/flake.lock @@ -123,11 +123,11 @@ ] }, "locked": { - "lastModified": 1784350909, - "narHash": "sha256-ZWyzLbS1yKUTeFJLmdVuWNnHttL333/ldJbEE+KzCrM=", + "lastModified": 1785119570, + "narHash": "sha256-Rgs2xKnGLFWQscxUaXX07oyZeuMDOHEbqDOsgliLFGM=", "owner": "nix-community", "repo": "home-manager", - "rev": "4ce190229c73d44536caa7072f6308fb2d8feeb3", + "rev": "d4fd24667c8cbef124bb70a20380cab75ec8474d", "type": "github" }, "original": { @@ -144,11 +144,11 @@ ] }, "locked": { - "lastModified": 1784789275, - "narHash": "sha256-cgRTWuG+u1tBPhm01JrId2k0Bni09phVJ1Q0BZlRd7M=", + "lastModified": 1785119578, + "narHash": "sha256-3VMVuOJ6fK+RNOXVmqusqUwQ1sDfPeddNKaM2JR/4Y0=", "owner": "nix-community", "repo": "home-manager", - "rev": "3b0e6bbd65869af1beadf5963a99befc179d209f", + "rev": "e83dffa86cccb6237fe194d4eeb47f41557749d1", "type": "github" }, "original": { @@ -166,11 +166,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1784874494, - "narHash": "sha256-c/+N/sFPfvSWoJOAzbavhn3vg6l/kt0Mouxs5mN6EmY=", + "lastModified": 1785121777, + "narHash": "sha256-5araxl7iFLgrVku59qaFgqRPyvUtG3CggRT1U1Sa410=", "owner": "numtide", "repo": "llm-agents.nix", - "rev": "639ab1338f9ddc6b7a5bab5a621bd17e78662bce", + "rev": "e711100ae4b583e6a3d20243c639f8e86bd75a89", "type": "github" }, "original": { @@ -207,11 +207,11 @@ ] }, "locked": { - "lastModified": 1784440659, - "narHash": "sha256-Q5kNLlWngt7TaIIZoxDKWMHjiSaNRVqr70FqWCRRfr4=", + "lastModified": 1785046085, + "narHash": "sha256-UiK+mmZJuLWQVhJ5b2wDzogIYWAesyRm6LA3h3Ulh3Y=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "4f8d52a3598b0dc7db7a5e7b419e3edd9d1ecfdb", + "rev": "11665045df8b9938ef811a3bfdc65cffb02b4b70", "type": "github" }, "original": { @@ -222,11 +222,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1784555310, - "narHash": "sha256-/FCliTPgiuV1owejZFNx3Ch9irdvkOfOFl+HHZ+DrtM=", + "lastModified": 1784872115, + "narHash": "sha256-THPEF2po0fsoH8gNtp+Ae0XFDJH3N/ol7xO3v6VMTJU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "421eebfd0ec7bccd4abe826ce62d7e6e83129493", + "rev": "335f0738cb2fa9708f3f428e39d2eae975d1338d", "type": "github" }, "original": { @@ -253,11 +253,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1784707089, - "narHash": "sha256-DUedXhD2Rg8q4Xyd07Sb90eZGy4gg6W+Vl/WbLNwAZo=", - "rev": "b3fe9581c9061c749abef42b6d4ee7b7c05c33fa", + "lastModified": 1785002762, + "narHash": "sha256-djHx+I7Yp2yyngFbDgZtvcLyWsGZ85WlVSTl1XW3Ta8=", + "rev": "f7a2e428f5d71c47a5a938a3c5ad7138bb291093", "type": "tarball", - "url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.5845.b3fe9581c906/nixexprs.tar.xz" + "url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.6144.f7a2e428f5d7/nixexprs.tar.xz" }, "original": { "id": "nixpkgs", @@ -267,11 +267,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1784783405, - "narHash": "sha256-DyIgdST66pzDA+9KRFS2K3fGgskgCQ8UiBxueFC7CTw=", - "rev": "7525d999cd850b9a488817abc89c75dc733acf17", + "lastModified": 1785110946, + "narHash": "sha256-Jww2+DH/TDKEOLOMj/MVBqeSFLTN6tFya3qCV0OfjEg=", + "rev": "d3498f786f97ac0bded21b34bae0bf3809b45aa3", "type": "tarball", - "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1040318.7525d999cd85/nixexprs.tar.xz" + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1042268.d3498f786f97/nixexprs.tar.xz" }, "original": { "id": "nixpkgs", diff --git a/nix-conf/overlays/atuin-session-host-filter-unstable.patch b/nix-conf/overlays/atuin-session-host-filter-unstable.patch index 9606f6b..0ab9949 100644 --- a/nix-conf/overlays/atuin-session-host-filter-unstable.patch +++ b/nix-conf/overlays/atuin-session-host-filter-unstable.patch @@ -114,11 +114,11 @@ index 7d9feb4..01a2c15 100644 + } + + let Ok(uuid) = uuid::Uuid::parse_str(&context.session) else { -+ log::warn!("failed to parse session id '{}'", context.session); ++ tracing::warn!("failed to parse session id '{}'", context.session); + continue; + }; + let Some(timestamp) = uuid.get_timestamp() else { -+ log::warn!( ++ tracing::warn!( + "failed to get timestamp from uuid '{}'", + uuid.as_hyphenated() + ); @@ -128,7 +128,7 @@ index 7d9feb4..01a2c15 100644 + let Ok(session_start) = time::OffsetDateTime::from_unix_timestamp_nanos( + i128::from(seconds) * 1_000_000_000 + i128::from(nanos), + ) else { -+ log::warn!( ++ tracing::warn!( + "failed to create OffsetDateTime from second: {seconds}, nanosecond: {nanos}" + ); + continue; diff --git a/nix-conf/overlays/atuin-session-host-filter.patch b/nix-conf/overlays/atuin-session-host-filter.patch index 4861dd8..9606f6b 100644 --- a/nix-conf/overlays/atuin-session-host-filter.patch +++ b/nix-conf/overlays/atuin-session-host-filter.patch @@ -1,8 +1,8 @@ diff --git a/crates/atuin-client/src/database.rs b/crates/atuin-client/src/database.rs -index 7aa095f7..fb8e4615 100644 +index 7c63368..338e107 100644 --- a/crates/atuin-client/src/database.rs +++ b/crates/atuin-client/src/database.rs -@@ -350,6 +350,16 @@ impl Database for Sqlite { +@@ -367,6 +367,16 @@ impl Database for Sqlite { } &mut query } @@ -19,7 +19,7 @@ index 7aa095f7..fb8e4615 100644 FilterMode::Directory => query.and_where_eq("cwd", quote(&context.cwd)), FilterMode::Workspace => query.and_where_like_left("cwd", &git_root), }; -@@ -481,6 +491,16 @@ impl Database for Sqlite { +@@ -498,6 +508,16 @@ impl Database for Sqlite { } &mut sql } @@ -37,20 +37,20 @@ index 7aa095f7..fb8e4615 100644 FilterMode::Workspace => sql.and_where_like_left("cwd", git_root), }; diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs -index 1c35e6eb..45a5c170 100644 +index 745bd2f..4580db3 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs -@@ -84,6 +84,9 @@ pub enum FilterMode { - +@@ -114,6 +114,9 @@ pub enum FilterMode { + #[serde(rename = "session-preload")] SessionPreload = 5, + + #[serde(rename = "session-host")] + SessionHost = 6, } - + impl FilterMode { -@@ -95,6 +98,7 @@ impl FilterMode { +@@ -125,6 +128,7 @@ impl FilterMode { FilterMode::Directory => "DIRECTORY", FilterMode::Workspace => "WORKSPACE", FilterMode::SessionPreload => "SESSION+", @@ -58,7 +58,7 @@ index 1c35e6eb..45a5c170 100644 } } } -@@ -517,6 +521,7 @@ impl Default for Search { +@@ -774,6 +778,7 @@ impl Default for Search { FilterMode::Host, FilterMode::Session, FilterMode::SessionPreload, @@ -66,7 +66,7 @@ index 1c35e6eb..45a5c170 100644 FilterMode::Workspace, FilterMode::Directory, ], -@@ -1096,6 +1101,7 @@ impl Settings { +@@ -1461,6 +1466,7 @@ impl Settings { "workspace", "directory", "session-preload", @@ -74,11 +74,23 @@ index 1c35e6eb..45a5c170 100644 ], )? .set_default("theme.name", "default")? +diff --git a/crates/atuin-daemon/src/client.rs b/crates/atuin-daemon/src/client.rs +index 2f492f6..2fbb5d0 100644 +--- a/crates/atuin-daemon/src/client.rs ++++ b/crates/atuin-daemon/src/client.rs +@@ -229,6 +229,7 @@ impl From<FilterMode> for RpcFilterMode { + FilterMode::Directory => RpcFilterMode::Directory, + FilterMode::Workspace => RpcFilterMode::Workspace, + FilterMode::SessionPreload => RpcFilterMode::SessionPreload, ++ FilterMode::SessionHost => RpcFilterMode::Session, + } + } + } diff --git a/crates/atuin/src/command/client/search/engines/skim.rs b/crates/atuin/src/command/client/search/engines/skim.rs -index cb7ce24f..2a436be4 100644 +index 7d9feb4..01a2c15 100644 --- a/crates/atuin/src/command/client/search/engines/skim.rs +++ b/crates/atuin/src/command/client/search/engines/skim.rs -@@ -122,6 +122,51 @@ async fn fuzzy_search( +@@ -131,6 +131,51 @@ async fn fuzzy_search( } } } diff --git a/nix-conf/overlays/modifications.nix b/nix-conf/overlays/modifications.nix index 053722e..e6df8db 100644 --- a/nix-conf/overlays/modifications.nix +++ b/nix-conf/overlays/modifications.nix @@ -7,7 +7,7 @@ in atuin = prev.atuin.overrideAttrs (oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ [ ( - if prev.lib.versionAtLeast prev.atuin.version "18.13.0" then + if prev.lib.versionAtLeast prev.atuin.version "18.17.1" then ./atuin-session-host-filter-unstable.patch else ./atuin-session-host-filter.patch |