aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/tools/default.nix2
-rw-r--r--modules/tools/lf/default.nix25
-rw-r--r--modules/tools/nnn/default.nix38
-rw-r--r--users/arpit.nix2
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;