diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-21 19:47:42 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-21 19:47:42 +0530 |
| commit | f782be554d09a08f5da3e570f02cb0f2443ccd3e (patch) | |
| tree | b442408a4e5414d29017f49e0f85c2c5f3fc8649 | |
| parent | 6c336b432a0adc29a923a686ab1a90a6b676a241 (diff) | |
| download | home-manager-config-f782be554d09a08f5da3e570f02cb0f2443ccd3e.tar.gz home-manager-config-f782be554d09a08f5da3e570f02cb0f2443ccd3e.zip | |
switched to lf for file manager
| -rw-r--r-- | modules/tools/default.nix | 2 | ||||
| -rw-r--r-- | modules/tools/lf/default.nix | 25 | ||||
| -rw-r--r-- | modules/tools/nnn/default.nix | 38 | ||||
| -rw-r--r-- | users/arpit.nix | 2 |
4 files changed, 27 insertions, 40 deletions
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; |
