aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/yazi/assertions.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 19:16:14 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 19:16:14 +0530
commitf36491c92269d3e1dd241e67c292af762ac498c3 (patch)
tree7e36c45915bf83dc7b69e21830cf0c27397c0592 /modules/file-management/yazi/assertions.nix
parentf85b86095aa4ea6ac4921b6d37981bffa5c0b711 (diff)
downloadhome-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.nix7
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.";
}
];