2023-02-27 16:51:39 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
2023-02-27 19:34:05 +00:00
|
|
|
let
|
|
|
|
cargoHash = if pkgs.stdenv.isDarwin then "sha256-0j2daQ9Qj+t3J91lMw4OXdpUViFgPhDDJFMm4QvFohU=" else "sha256-WOJurXTLIKTyFrxjnQpDbyrc6U0UvJELvqfG2UbfS4g=";
|
|
|
|
in
|
2023-02-27 16:51:39 +00:00
|
|
|
{
|
|
|
|
programs.atuin = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
package = pkgs.atuin.overrideAttrs (
|
|
|
|
oldAttrs: rec {
|
|
|
|
version = "13.0.0";
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "ellie";
|
|
|
|
repo = "atuin";
|
|
|
|
rev = "v13.0.0";
|
|
|
|
hash = "sha256-liuHleJxRrPWOQ5jL3BD8ErbKNGBeRk9Emvfodqy5dQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (lib.const {
|
|
|
|
name = "${oldAttrs.pname}-${version}-vendor.tar.gz";
|
|
|
|
inherit src;
|
2023-02-27 19:34:05 +00:00
|
|
|
outputHash = cargoHash;
|
2023-02-27 16:51:39 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
"--skip=tui::buffer::tests::index_of_panics_on_out_of_bounds"
|
|
|
|
"--skip=tui::buffer::tests::pos_of_panics_on_out_of_bounds"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
enableBashIntegration = false;
|
|
|
|
enableZshIntegration = false;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
|
|
|
|
settings = {
|
2023-02-27 17:00:01 +00:00
|
|
|
auto_sync = true;
|
|
|
|
sync_address = "http://100.113.242.85:8015";
|
|
|
|
sync_frequency = "1h";
|
2023-02-27 16:51:39 +00:00
|
|
|
update_check = false;
|
|
|
|
|
|
|
|
style = "auto";
|
|
|
|
search_mode = "fuzzy";
|
|
|
|
filter_mode_shell_up_key_binding = "session";
|
|
|
|
|
|
|
|
history_filter = [
|
|
|
|
"^base64decode"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|