38 lines
808 B
Nix
38 lines
808 B
Nix
{ lib, config, ... }:
|
|
let
|
|
enabled = config.mod.atuin.enable;
|
|
in
|
|
{
|
|
options = {
|
|
mod.atuin = {
|
|
enable = lib.mkEnableOption "enable atuin module";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf enabled {
|
|
home-manager.users.alex = {
|
|
programs.atuin = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
flags = [ "--disable-up-arrow" ];
|
|
|
|
settings = {
|
|
sync_address = "http://manatee:8889";
|
|
auto_sync = true;
|
|
sync_frequency = "5m";
|
|
key_path = config.age.secrets."atuin-key".path;
|
|
ctrl_n_shortcuts = false;
|
|
};
|
|
};
|
|
|
|
programs.fzf.historyWidget.command = "";
|
|
};
|
|
|
|
age.secrets."atuin-key" = {
|
|
file = ../../../../secrets/pinwheel/atuin-key.age;
|
|
owner = "alex";
|
|
group = "users";
|
|
};
|
|
};
|
|
}
|