aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal/fzf/assertions.nix
blob: 2c0bec9da43d9c0dabf4bcf9b5dafb3fb6a52315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Assertions - Validates zsh or bash is enabled when fzf is enabled
{ config, ... }:
{
  assertions = [
    {
      assertion =
        !config.terminal.fzf.enable || config.terminal.zsh.enable || config.terminal.bash.enable;
      message = ''
        terminal.fzf is enabled but neither terminal.zsh.enable nor terminal.bash.enable is set.
        fzf shell integration requires zsh or bash. Please enable at least one.
      '';
    }
  ];
}