From f782be554d09a08f5da3e570f02cb0f2443ccd3e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Tue, 21 Apr 2026 19:47:42 +0530 Subject: switched to lf for file manager --- modules/tools/default.nix | 2 +- modules/tools/lf/default.nix | 25 +++++++++++++++++++++++++ modules/tools/nnn/default.nix | 38 -------------------------------------- users/arpit.nix | 2 +- 4 files changed, 27 insertions(+), 40 deletions(-) create mode 100644 modules/tools/lf/default.nix delete mode 100644 modules/tools/nnn/default.nix diff --git a/modules/tools/default.nix b/modules/tools/default.nix index cc926a1..bcb8ebb 100644 --- a/modules/tools/default.nix +++ b/modules/tools/default.nix @@ -16,11 +16,11 @@ ./htop ./impala ./kitty + ./lf ./librewolf ./lsd ./maim ./nixvim - ./nnn ./nvtop ./opencode ./openssh diff --git a/modules/tools/lf/default.nix b/modules/tools/lf/default.nix new file mode 100644 index 0000000..dfef3b1 --- /dev/null +++ b/modules/tools/lf/default.nix @@ -0,0 +1,25 @@ +{ + pkgs, + lib, + config, + ... +}: + +# lf - terminal file manager +{ + options.tools.lf = { + enable = lib.mkEnableOption "Enables lf."; + }; + + config = lib.mkIf config.tools.lf.enable { + programs.lf = { + enable = true; + settings = { + number = true; + icons = true; + drawbox = true; + hidden = true; + }; + }; + }; +} diff --git a/modules/tools/nnn/default.nix b/modules/tools/nnn/default.nix deleted file mode 100644 index 6dcc307..0000000 --- a/modules/tools/nnn/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: - -# nnn - Terminal file manager (n³), a lightweight file browser -{ - options.tools.nnn = { - enable = lib.mkEnableOption "Enables nnn."; - }; - - config = lib.mkIf config.tools.nnn.enable { - home.sessionVariables = { - # Start nnn in detail mode + show hidden items by default - NNN_OPTS = "dH"; - NNN_FIFO = "/tmp/nnn.fifo"; - }; - - programs.nnn = { - enable = true; - package = pkgs.nnn.override { withNerdIcons = true; }; - plugins = { - src = "${config.programs.nnn.package}/share/plugins"; - mappings = { - p = "preview-tui"; - }; - }; - extraPackages = with pkgs; [ - bat - ffmpeg - ffmpegthumbnailer - ueberzugpp - ]; - }; - }; -} diff --git a/users/arpit.nix b/users/arpit.nix index effdf61..87ac8bc 100644 --- a/users/arpit.nix +++ b/users/arpit.nix @@ -26,11 +26,11 @@ tools.htop.enable = true; tools.impala.enable = true; tools.kitty.enable = true; + tools.lf.enable = true; tools.librewolf.enable = true; tools.lsd.enable = true; tools.maim.enable = true; tools.nixvim.enable = true; - tools.nnn.enable = true; tools.nvtop.enable = true; tools.opencode.enable = true; tools.openssh.enable = true; -- cgit v1.2.3