2024-02-05 11:46:52 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-11 08:14:48 +02:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.eboskma.programs.nnn;
|
|
|
|
in
|
|
|
|
{
|
2024-02-05 11:46:52 +01:00
|
|
|
options.eboskma.programs.nnn = {
|
|
|
|
enable = mkEnableOption "nnn";
|
|
|
|
};
|
2023-10-11 08:14:48 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.nnn = {
|
|
|
|
enable = true;
|
2024-02-05 11:46:52 +01:00
|
|
|
package =
|
|
|
|
(pkgs.nnn.overrideAttrs (
|
|
|
|
_prevAttrs: {
|
|
|
|
version = "unstable-2023-10-08";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
2023-10-11 08:14:48 +02:00
|
|
|
owner = "jarun";
|
|
|
|
repo = "nnn";
|
|
|
|
rev = "7f63bef4d6c9f70b99a4c98435c9c0a68e05be44";
|
|
|
|
sha256 = "B9WRQW4wbs3+lJ9ACFheTaO+0+G/r67yJZJJPMDIQXI=";
|
|
|
|
};
|
2024-02-05 11:46:52 +01:00
|
|
|
}
|
|
|
|
)).override
|
|
|
|
{
|
|
|
|
withNerdIcons = true;
|
|
|
|
extraMakeFlags = [
|
|
|
|
"O_COLEMAK=1"
|
|
|
|
"O_GITSTATUS=1"
|
|
|
|
];
|
|
|
|
};
|
2023-10-11 08:14:48 +02:00
|
|
|
plugins = {
|
2024-02-05 11:46:52 +01:00
|
|
|
src =
|
|
|
|
(pkgs.fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
|
|
|
repo = "nnn";
|
|
|
|
rev = "7f63bef4d6c9f70b99a4c98435c9c0a68e05be44";
|
|
|
|
sha256 = "B9WRQW4wbs3+lJ9ACFheTaO+0+G/r67yJZJJPMDIQXI=";
|
|
|
|
})
|
|
|
|
+ "/plugins";
|
2023-10-11 08:14:48 +02:00
|
|
|
|
|
|
|
mappings = {
|
|
|
|
c = "fzcd";
|
|
|
|
f = "finder";
|
|
|
|
V = "imgview";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
atool
|
|
|
|
ffmpegthumbnailer
|
|
|
|
html2text
|
2024-02-22 11:31:37 +01:00
|
|
|
(imv.override {
|
|
|
|
withBackends = [
|
|
|
|
"libtiff"
|
|
|
|
"libjpeg"
|
|
|
|
"libpng"
|
|
|
|
"librsvg"
|
|
|
|
"libheif"
|
|
|
|
];
|
|
|
|
})
|
2023-10-11 08:14:48 +02:00
|
|
|
mediainfo
|
|
|
|
p7zip
|
|
|
|
pbzip2
|
|
|
|
pigz
|
|
|
|
sourceHighlight
|
|
|
|
zip
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|