2024-07-08 15:27:30 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2023-04-26 22:21:05 +02:00
|
|
|
let
|
|
|
|
cfg = config.my.home.atuin;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.home.atuin = with lib; {
|
|
|
|
enable = my.mkDisableOption "atuin configuration";
|
2024-07-08 15:27:30 +02:00
|
|
|
|
|
|
|
# I want the full experience by default
|
|
|
|
package = mkPackageOption pkgs "atuin" { };
|
2023-04-26 22:21:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.atuin = {
|
|
|
|
enable = true;
|
2024-07-08 15:27:30 +02:00
|
|
|
inherit (cfg) package;
|
2023-04-26 22:21:05 +02:00
|
|
|
|
|
|
|
flags = [
|
|
|
|
# I *despise* this hijacking of the up key, even though I use Ctrl-p
|
|
|
|
"--disable-up-arrow"
|
|
|
|
];
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
# The package is managed by Nix
|
|
|
|
update_check = false;
|
|
|
|
# I don't care for the fancy display
|
|
|
|
style = "compact";
|
2023-04-27 11:21:21 +02:00
|
|
|
# Get closer to fzf's fuzzy search
|
|
|
|
search_mode = "skim";
|
2023-04-27 11:22:57 +02:00
|
|
|
# Show long command lines at the bottom
|
|
|
|
show_preview = true;
|
2024-02-13 15:34:12 +01:00
|
|
|
# I like being able to edit my commands
|
|
|
|
enter_accept = false;
|
2023-04-26 22:21:05 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|