diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-20 04:15:53 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-20 04:15:53 +0530 |
| commit | daea646972aa03ce8e58bff2edaed16bf7fbf9db (patch) | |
| tree | 0f0ee033422e456b14b3e012ca8b1a490b77de15 /modules/file-management/yazi/assertions.nix | |
| parent | fb442560064f98ee850c71d78330b9b3abda4774 (diff) | |
| download | home-manager-config-daea646972aa03ce8e58bff2edaed16bf7fbf9db.tar.gz home-manager-config-daea646972aa03ce8e58bff2edaed16bf7fbf9db.zip | |
chore: added better assertions for options for submodules
Now setting options for submodules requires the submodule to be enabled
first.
Diffstat (limited to 'modules/file-management/yazi/assertions.nix')
| -rw-r--r-- | modules/file-management/yazi/assertions.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/file-management/yazi/assertions.nix b/modules/file-management/yazi/assertions.nix index 599b8b5..288757d 100644 --- a/modules/file-management/yazi/assertions.nix +++ b/modules/file-management/yazi/assertions.nix @@ -1,4 +1,4 @@ -# Validates kitty is enabled for yazi desktop entry +# Validates yazi dependencies and sub-options { config, ... }: { assertions = [ @@ -9,5 +9,9 @@ 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; + message = "file-management.yazi.file-chooser.enable requires file-management.yazi.enable."; + } ]; } |
