u/BeholderVee

▲ 0 r/NixOS

Cannot set [open] rules in Yazi

I'm trying to set the rules in the [open] section for Yazi.

I need this in my yazi.toml:

[open]

prepend_rules = [ { url = "*kra", use = "open" } ]

The solution I've seen in multiple places is putting this in config.nix:

programs.yazi.settings.yazi.open = [{ prepend_rules = [{ url = "*.kra"; use = "open"; }];}];

But this results in the yazi.toml file containing the following:

[open.prepend_rules]

url = "*kra"

use = "open"

I've tried loading a pre-made .toml file:

settings.yazi = lib.importTOML ./yazi.toml;

This does not seem to have any effect. It doesn't even generate a new directory in /nix/store.

I've tried putting the .toml file in my .config, but this also has no effect.

I've been at it for hours now and I still can't find a solution.

reddit.com
u/BeholderVee — 4 days ago
▲ 3 r/NixOS

Cannot get Yazi plugin to work

SOLUTION: I've fixed the issue by inputting the hash the error threw out in the config.

I'm trying to install a clipboard plugin for Yazi. It doesn't exist in NixOS stable repos, so I'm trying to fetch it from Github. I have this in my home-manager configuration:

programs.yazi = {

enable = true;

plugins = {

clipboard = pkgs.fetchFromGitHub {

owner = "XYenon";

repo = "clipboard.yazi";

rev = "master";

};

};

};

Trying to nixos rebuild-switch throws a dependency failed error. Could someone please help?

Edit: Here's the error:

warning: found empty hash, assuming 'sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='

error: hash mismatch in fixed-output derivation '/nix/store/0jl443kc8gq8divzx3yv07qz8a8hdxqg-source.drv':

specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=

got: sha256-jNBwkcFb9i5Z6BSMfkTOyrK7HZohAT/yB3cxcCOG54w=

error: Cannot build '/nix/store/yq44mzlxd8dgnns7byr8m936jpr2gr2x-YAZI_CONFIG_HOME.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/8ish7kgkfkrnd2fc25d72iczfy9lpz3s-YAZI_CONFIG_HOME

error: Cannot build '/nix/store/z812m8pzr949nl8x25hwlsjm0h2p3lda-yazi-25.5.31.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/5jpk8cqlic6c523spckkkdkjn9wk0z4j-yazi-25.5.31

error: Cannot build '/nix/store/jrrh3c1yjp4ly4jyw7dh8sj75gv0mm8f-man-paths.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/sm0sp9dw1q132i211rlfarfacr3196q5-man-paths

error: Cannot build '/nix/store/bp409ajlaviljdpmp92i4xmlw228isd6-system-path.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/g08d8zxkbyfkz75v2cq14ndlsy6nc9z6-system-path

error: Cannot build '/nix/store/rwapwi39xm01a4d9xxjgq1rhyww3y01c-yazi-25.5.31_fish-completions.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/51jz8rxw5ysa8fpplql7j51sii64aai2-yazi-25.5.31_fish-completions

error: Cannot build '/nix/store/vqxprg21391hybz2qx9nv8ws2409b12b-nixos-system-nixos-25.11.20260413.7e495b7.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/3bvq8cqahgwaazvndgb9zk0a95302gh0-nixos-system-nixos-25.11.20260413.7e495b7

Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/etc/nixos#nixosConfigurations."nixos".config.system.build.toplevel' --no-link' returned

reddit.com
u/BeholderVee — 4 days ago