nix/home-manager/common/software/cli/atuin.nix

26 lines
674 B
Nix
Raw Normal View History

2024-04-28 21:48:11 +09:00
{ config, ... }: {
2024-04-28 13:39:08 +09:00
programs.atuin = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableNushellIntegration = true;
enableZshIntegration = true;
settings = {
auto_sync = true;
2024-04-29 09:00:46 +09:00
sync_frequency = "10s";
2024-04-28 14:06:03 +09:00
sync_address = "https://atuin.sysctl.io";
2024-04-29 08:08:53 +09:00
search_mode = "fuzzy";
2024-04-28 22:06:30 +09:00
search_mode_shell_up_key_binding = "fuzzy";
2024-04-28 14:06:03 +09:00
secrets_filter = true;
2024-04-28 21:48:11 +09:00
key_path = config.sops.secrets.atuin_key.path;
2024-04-29 09:00:46 +09:00
filter_mode = "global";
workspaces = true;
2024-04-28 13:39:08 +09:00
};
};
2024-04-28 21:48:11 +09:00
2024-04-29 21:01:46 +09:00
sops.secrets.atuin_key = {
sopsFile = ../../../../secrets/secrets.yaml;
2024-04-29 21:24:56 +09:00
restartUnits = [ "sops-nix.service" ];
2024-04-29 21:01:46 +09:00
};
2024-04-28 13:39:08 +09:00
}