diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 19:16:14 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 19:16:14 +0530 |
| commit | f36491c92269d3e1dd241e67c292af762ac498c3 (patch) | |
| tree | 7e36c45915bf83dc7b69e21830cf0c27397c0592 /modules/file-management/yazi/assertions.nix | |
| parent | f85b86095aa4ea6ac4921b6d37981bffa5c0b711 (diff) | |
| download | home-manager-config-f36491c92269d3e1dd241e67c292af762ac498c3.tar.gz home-manager-config-f36491c92269d3e1dd241e67c292af762ac498c3.zip | |
refactor: some more minor refactoring
Diffstat (limited to 'modules/file-management/yazi/assertions.nix')
| -rw-r--r-- | modules/file-management/yazi/assertions.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/file-management/yazi/assertions.nix b/modules/file-management/yazi/assertions.nix index 288757d..6435b00 100644 --- a/modules/file-management/yazi/assertions.nix +++ b/modules/file-management/yazi/assertions.nix @@ -1,16 +1,19 @@ # Validates yazi dependencies and sub-options { config, ... }: +let + cfg = config.file-management.yazi; +in { assertions = [ { - assertion = !config.file-management.yazi.enable || config.terminal.kitty.enable; + assertion = !cfg.enable || config.terminal.kitty.enable; message = '' file-management.yazi is enabled but terminal.kitty.enable is not. yazi's desktop entry requires kitty as the terminal launcher. Please enable terminal.kitty. ''; } { - assertion = !config.file-management.yazi.file-chooser.enable || config.file-management.yazi.enable; + assertion = !cfg.file-chooser.enable || cfg.enable; message = "file-management.yazi.file-chooser.enable requires file-management.yazi.enable."; } ]; |
