diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-23 18:30:05 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-23 18:42:18 +0530 |
| commit | 5032239a236595451f22ea948c42281f8aa04645 (patch) | |
| tree | 5e6be8235a04614c676d8883c3c756e1b9a5f4ff /modules/file-management/lf/default.nix | |
| parent | 2ad7b06ced0ffa39d20e6be41466e5bd834ee956 (diff) | |
| download | home-manager-config-5032239a236595451f22ea948c42281f8aa04645.tar.gz home-manager-config-5032239a236595451f22ea948c42281f8aa04645.zip | |
feat: migrate from lf to yazi as default file manager
- Replace lf module with yazi module including base16 theme
- Remove file-preview and file-preview-clean scripts (no longer needed)
- Add yazi-file-chooser script for XDG Desktop Portal integration
- Update i3 keybinding to use yazi
- Add GTK_USE_PORTAL and TERMCMD session variables
- Add extraLinks support to mkScriptModule
Diffstat (limited to 'modules/file-management/lf/default.nix')
| -rw-r--r-- | modules/file-management/lf/default.nix | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/modules/file-management/lf/default.nix b/modules/file-management/lf/default.nix deleted file mode 100644 index 15d34ae..0000000 --- a/modules/file-management/lf/default.nix +++ /dev/null @@ -1,69 +0,0 @@ -# lf - terminal file manager -{ - pkgs, - lib, - config, - ... -}: -{ - options.file-management.lf = { - enable = lib.mkEnableOption "Enables lf."; - package = lib.mkOption { - type = lib.types.package; - default = pkgs.lf.overrideAttrs (old: { - dontWrapQtApps = true; - dontPatchShebangs = true; - }); - description = "The lf package to use."; - }; - }; - - 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"; - }; - - programs.lf = { - enable = true; - package = config.file-management.lf.package; - settings = { - number = true; - icons = true; - drawbox = true; - hidden = true; - preview = true; - - shell = config.home.sessionVariables.SHELL; - ifs = "\n"; - scrolloff = "4"; - period = "1"; - incsearch = true; - smartcase = true; - info = "size"; - sortby = "natural"; - dirfirst = true; - - cleaner = lib.getExe config.scripts.file-preview-clean.package; - }; - - previewer = { - source = lib.getExe config.scripts.file-preview.package; - }; - - extraConfig = builtins.readFile ./lfrc; - }; - - home.file.".config/lf/icons".source = ./icons; - }; -} |
