Add zoxide to ranger using plugin

This commit is contained in:
Wroclaw 2024-02-18 23:33:39 +01:00
parent f753431218
commit 68dc2f259d

View file

@ -2,10 +2,26 @@
let let
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
rangerGit = pkgs.ranger.overrideAttrs (old: {
version = "git";
src = pkgs.fetchFromGitHub {
owner = "ranger";
repo = "ranger";
rev = "c7777d558d5b69843b21f986e9af1af311c83887";
hash = "sha256-DTVoEfc4dAaBTDLFujvWIYj5KHL89YknUiinIs9Rkeg=";
};
propagatedBuildInputs = with pkgs.python3Packages; [
# required for test suite, it's being ran during package build for some reason
flake8
pylint
pytest
setuptools
] ++ old.propagatedBuildInputs;
});
in in
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ranger rangerGit
kitty kitty
zoxide zoxide
]; ];
@ -38,6 +54,13 @@ in
map <C-d> drag map <C-d> drag
''; '';
environment.etc."ranger/plugins/zoxide.py".source = pkgs.fetchFromGitHub {
owner = "jchook";
repo = "ranger-zoxide";
rev = "281828de060299f73fe0b02fcabf4f2f2bd78ab3";
hash = "sha256-JEuyYSVa1NS3aftezEJx/k19lwwzf7XhqBCL0jH6VT4=";
} + /__init__.py;
programs.direnv.enable = true; programs.direnv.enable = true;
programs.starship = { programs.starship = {