{
programs.atuin = {
enable = true;
flags = [ "--disable-up-arrow" ];
settings = {
filter_mode = "directory";
inline_height = 30;
search_mode_shell_up_key_binding = "prefix";
filter_mode_shell_up_key_binding = "directory";
show_preview = true;
style = "compact";
};
};
}
{
_.persist.allUsers.directories = [ ".local/share/atuin" ];
}
ZFS
There are numerous issues1 regarding
ZFS performance. A workaround for this is to use daemon mode with
Atuin
:
{ lib, pkgs, ... }:
{
programs.atuin.settings.daemon = {
enabled = true;
systemd_socket = true;
};
systemd.user.services."atuin-daemon" = {
Service = {
ExecStart = "${lib.getExe pkgs.atuin} daemon";
};
};
systemd.user.sockets."atuin-daemon" = {
Socket = {
ListenStream = "%t/atuin.sock";
};
Install = {
WantedBy = [ "sockets.target" ];
};
};
}
Footnotes
-
Sometimes a delay of up to zfs_txg_timeout seconds when doing ftruncate openzfs/zfs#14290 ↩