Add yazi custom shell plugin

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-13 14:47:14 +01:00
parent 000a8c64b4
commit 6505f74ef3
17 changed files with 54 additions and 17 deletions

View File

@@ -6,10 +6,13 @@
config,
lib,
pkgs,
inputs,
system,
...
}:
let
hmConfig = config.home-manager.users.${user};
selfPkgs = inputs.self.packages.${system};
in
{
home-manager.users.${user} = {
@@ -123,6 +126,16 @@ in
run = "plugin smart-enter";
desc = "Enter the child directory, or open the file";
}
{
on = ";";
run = "plugin custom-shell -- auto --interactive";
desc = "Run a shell command";
}
{
on = ":";
run = "plugin custom-shell -- auto --interactive --block";
desc = "Run a shell command (block until finishes)";
}
{
on = "!";
run = "shell \"$SHELL\" --block";
@@ -179,6 +192,8 @@ in
mount
mediainfo
;
custom-shell = selfPkgs.yazi-plugin-custom-shell;
};
};

View File

@@ -1,12 +1,12 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake --version=branch=master darktable-hald-clut
pkgs.stdenv.mkDerivation rec {
pname = "darktable-hald-clut";
pname = "hald-clut";
version = "0-unstable-2019-03-21";
src = pkgs.fetchFromGitHub {
owner = "cedeber";
repo = "hald-clut";
repo = pname;
rev = "3b3180f82d4dcea1e6e8c5648473539a910d7f49";
hash = "sha256-R8vyYmcsfk49QsSV3v0QblXcO6U0oIfDyxbHPLwSMdo=";
};

View File

@@ -1,12 +1,12 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake --version=branch=master darktable-lua-scripts
pkgs.stdenv.mkDerivation rec {
pname = "darktable-lua-scripts";
pname = "lua-scripts";
version = "release-2.0.0-unstable-2025-06-01";
src = pkgs.fetchFromGitHub {
owner = "darktable-org";
repo = "lua-scripts";
repo = pname;
rev = "453d744b6938f1bab652bae9745731bfe413d90b";
hash = "sha256-gTbp7cExUnh4CVviaiYZ1eqVhlXwzX/DHKIFgWJe+UE=";
};

View File

@@ -62,6 +62,8 @@
ssh-known-hosts-github = import ./ssh/known-hosts/github { inherit pkgs inputs system; };
yazi-plugin-custom-shell = import ./yazi/plugins/custom-shell { inherit pkgs; };
# SAS
ssh-known-hosts-sas-artifact = import ./ssh/known-hosts/sas/artifact {
inherit pkgs inputs system;

View File

@@ -1,12 +1,12 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-better-word-count
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-better-word-count";
pname = "better-word-count";
version = "0.10.1";
src = pkgs.fetchFromGitHub {
owner = "lukeleppan";
repo = "better-word-count";
repo = pname;
rev = version;
hash = "sha256-+z31nYnCrHjuV4ICVO+cKBM5q/zYA7Ju+J+6eU7t9Bo=";
};

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-dataview
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-dataview";
pname = "dataview";
version = "0.5.70";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-kanban
pkgs.stdenv.mkDerivation rec {
pname = "obsidian-plugin-kanban";
pname = "kanban";
version = "2.0.51";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-languagetool
pkgs.stdenv.mkDerivation rec {
pname = "obsidian-plugin-languagetool";
pname = "languagetool";
version = "0.3.7";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-linter
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-linter";
pname = "linter";
version = "1.29.2";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-map-view
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-map-view";
pname = "map-view";
version = "5.5.0";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-minimal-settings
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-minimal-settings";
pname = "minimal-settings";
version = "8.1.1";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-outliner
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-outliner";
pname = "outliner";
version = "4.9.0";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-style-settings --src-attr unpatchedSrc
pkgs.stdenv.mkDerivation rec {
pname = "obsidian-plugin-style-settings";
pname = "style-settings";
version = "1.0.9";
unpatchedSrc = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-tasks
pkgs.stdenv.mkDerivation rec {
pname = "obsidian-plugin-tasks";
pname = "tasks";
version = "7.19.1";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-plugin-url-into-selection
pkgs.buildNpmPackage rec {
pname = "obsidian-plugin-url-into-selection";
pname = "url-into-selection";
version = "1.7.0";
src = pkgs.fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake obsidian-theme-minimal
pkgs.buildNpmPackage rec {
pname = "obsidian-theme-minimal";
pname = "minimal";
version = "8.0.1";
src = pkgs.fetchFromGitHub {

View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
# AUTO-UPDATE: nix-update --flake --version=branch=main yazi-plugin-custom-shell
pkgs.stdenv.mkDerivation rec {
pname = "custom-shell";
version = "0-unstable-2025-06-07";
src = pkgs.fetchFromGitHub {
owner = "AnirudhG07";
repo = "custom-shell.yazi";
rev = "b04213d2f4ca6079bef37491be07860baa8264b9";
hash = "sha256-hJVFZvcHgcjmcwUUGs1Q668KjeLSCEVuAhAD1A8ZM90=";
};
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out
cp $src/main.lua $out
'';
}