{ 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; }; }; programs.fzf.historyWidget.command = ""; }; age.secrets."atuin-key" = { file = ../../../../secrets/pinwheel/atuin-key.age; owner = "alex"; group = "users"; }; }; }