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.