mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
21 lines
347 B
Nix
21 lines
347 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
# ensure .local/share/z is created
|
|
xdg.dataFile."z/.keep".text = "";
|
|
|
|
programs.zsh = {
|
|
localVariables = {
|
|
_Z_DATA = "${config.xdg.dataHome}/z/data";
|
|
};
|
|
plugins =
|
|
map (plugin: (with pkgs.${plugin}; {
|
|
name = pname;
|
|
inherit src;
|
|
})) [
|
|
"zsh-z"
|
|
];
|
|
};
|
|
}
|