29 lines
530 B
Nix
29 lines
530 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;
|
|
|
|
settings = {
|
|
sync_address = "http://manatee:8889";
|
|
auto_sync = true;
|
|
sync_frequency = "5m";
|
|
};
|
|
};
|
|
|
|
programs.fzf.historyWidget.command = "";
|
|
};
|
|
};
|
|
}
|