Add nnn config, add nurl.
This commit is contained in:
parent
3bb730988d
commit
6738c49c09
@ -23,6 +23,7 @@
|
|||||||
sesh
|
sesh
|
||||||
stress-ng
|
stress-ng
|
||||||
dmidecode
|
dmidecode
|
||||||
|
nurl
|
||||||
];
|
];
|
||||||
|
|
||||||
# Install librewolf
|
# Install librewolf
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
imports = [./mangohud.nix ./neovim.nix ./zsh.nix ./tmux.nix];
|
imports = [
|
||||||
|
./mangohud.nix
|
||||||
|
./neovim.nix
|
||||||
|
./zsh.nix
|
||||||
|
./tmux.nix
|
||||||
|
./nnn.nix
|
||||||
|
];
|
||||||
|
|
||||||
crony.mangohud.enable = lib.mkDefault true;
|
crony.mangohud.enable = lib.mkDefault true;
|
||||||
crony.neovim.enable = lib.mkDefault true;
|
crony.neovim.enable = lib.mkDefault true;
|
||||||
crony.zsh.enable = lib.mkDefault true;
|
crony.zsh.enable = lib.mkDefault true;
|
||||||
crony.tmux.enable = lib.mkDefault true;
|
crony.tmux.enable = lib.mkDefault true;
|
||||||
|
crony.nnn.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
51
modules/home-manager/nnn.nix
Normal file
51
modules/home-manager/nnn.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
crony.nnn.enable = lib.mkEnableOption "Enable nnn and customize it for me.";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.nnn.enable {
|
||||||
|
# NNN Settings
|
||||||
|
programs.nnn = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nnn.override {withNerdIcons = true;};
|
||||||
|
bookmarks = {
|
||||||
|
d = "~/Documents";
|
||||||
|
D = "~/Downloads";
|
||||||
|
p = "~/Pictures";
|
||||||
|
v = "~/Videos";
|
||||||
|
};
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
pmount
|
||||||
|
ffmpegthumbnailer
|
||||||
|
mediainfo
|
||||||
|
ueberzugpp
|
||||||
|
poppler_utils
|
||||||
|
gnome-epub-thumbnailer
|
||||||
|
nsxiv
|
||||||
|
];
|
||||||
|
plugins.mappings = {
|
||||||
|
u = "nmount";
|
||||||
|
c = "chksum";
|
||||||
|
r = "gitroot";
|
||||||
|
v = "imgview";
|
||||||
|
m = "mtpmount";
|
||||||
|
d = "xdgdefault";
|
||||||
|
x = "togglex";
|
||||||
|
p = "preview-tui";
|
||||||
|
};
|
||||||
|
plugins.src =
|
||||||
|
(pkgs.fetchFromGitHub {
|
||||||
|
owner = "jarun";
|
||||||
|
repo = "nnn";
|
||||||
|
rev = "62c84dd2549770e15c70328863a63da4fd2da2f9";
|
||||||
|
hash = "sha256-Q/p4+v0sthcsmi8/EoAVT4dNl+hZNKZM4fjhffMpato=";
|
||||||
|
})
|
||||||
|
+ "/plugins";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user