nix/home-manager/common/software/cli/atuin.nix
2024-04-29 21:01:46 +09:00

25 lines
674 B
Nix

{ config, ... }: {
programs.atuin = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableNushellIntegration = true;
enableZshIntegration = true;
settings = {
auto_sync = true;
sync_frequency = "10s";
sync_address = "https://atuin.sysctl.io";
search_mode = "fuzzy";
search_mode_shell_up_key_binding = "fuzzy";
secrets_filter = true;
key_path = config.sops.secrets.atuin_key.path;
filter_mode = "global";
workspaces = true;
};
};
sops.secrets.atuin_key = {
sopsFile = ../../../../secrets/secrets.yaml;
restartUnits = [ "sops-nix.service" ];
};
}