aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-18 12:15:20 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-18 12:15:20 +0530
commit4124a5ae231a585b945c9547a3ab0c37a4eba7e3 (patch)
treeb51774266eab457a13ee176bd6cd76b093b16d03 /modules/file-management
parent302f83b23b364b08dc47725266db5e20437d71e4 (diff)
downloadhome-manager-config-4124a5ae231a585b945c9547a3ab0c37a4eba7e3.tar.gz
home-manager-config-4124a5ae231a585b945c9547a3ab0c37a4eba7e3.zip
refactor: replace zsh deps with runtimeShell, migrate scripts from symlinkJoin to runCommand, add missing assertions and deps
Scripts: Migrated from symlinkJoin to runCommand; replaced zsh dependency with pkgs.runtimeShell across polybar, scripts, and fzf-launcher Assertions: Added gopass/gpg checks for neomutt, signing checks for git, git dependency for lazygit, file-preview deps for lf, desktop/kitten checks for scripts Lazygit: Fixed mkIf placement, imported assertions Neomutt: Removed verbose keybinding descriptions Nixvim: Removed <c-c> notification-clear mapping File preview: Replaced libreoffice document preview with pandoc/antiword (terminal-based) Fzf launcher: Fixed bash compatibility (setopt → shopt -s) Deps: Added coreutils, fontconfig, antiword, pandoc, util-linux, bash, findutils, grep, sed, gawk, ncurses to various scripts
Diffstat (limited to 'modules/file-management')
-rw-r--r--modules/file-management/lf/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/file-management/lf/default.nix b/modules/file-management/lf/default.nix
index b6cfa22..cd9ca5c 100644
--- a/modules/file-management/lf/default.nix
+++ b/modules/file-management/lf/default.nix
@@ -19,6 +19,17 @@
};
config = lib.mkIf config.file-management.lf.enable {
+ assertions = [
+ {
+ assertion = config.scripts.file-preview.enable;
+ message = "file-management.lf.enable requires scripts.file-preview.enable for file previews.";
+ }
+ {
+ assertion = config.scripts.file-preview-clean.enable;
+ message = "file-management.lf.enable requires scripts.file-preview-clean.enable to clear kitty previews.";
+ }
+ ];
+
xdg.mimeApps.defaultApplications = {
"inode/directory" = "lf.desktop";
};