configure nnn through home-manager

This commit is contained in:
cswimr 2025-02-02 06:38:27 -06:00
parent e45e334313
commit 3ff056aff9
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
3 changed files with 43 additions and 1 deletions

View file

@ -143,6 +143,7 @@
./home-manager/gauntlet.nix
./home-manager/kitty.nix
./home-manager/mangohud.nix
./home-manager/nnn.nix
./home-manager/plasma.nix
./home-manager/tpm.nix
./home-manager/user.nix

42
home-manager/nnn.nix Normal file
View file

@ -0,0 +1,42 @@
{ pkgs, ... }:
{
programs.nnn = {
enable = true;
package = pkgs.nnn.override {
withNerdIcons = true;
extraMakeFlags = [ "O_GITSTATUS=1" ];
};
extraPackages = with pkgs; [
bat
eza
fzf
imv
mediainfo
libarchive
ueberzug
ffmpegthumbnailer
ffmpeg
glow
poppler
imagemagick
gnome-epub-thumbnailer
w3m
];
plugins = {
src = "${pkgs.nnn.src}/plugins";
mappings = {
c = "fzcd";
f = "finder";
o = "fzopen";
p = "preview-tui";
v = "imgview";
};
};
bookmarks = {
h = "~";
D = "~/Downloads";
d = "~/Documents";
p = "~/Projects";
};
};
}

View file

@ -13,7 +13,6 @@ let
curl
git
hub
(nnn.override { withNerdIcons = true; })
fzf
ripgrep
fastfetch