mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-18 18:48:33 +02:00
nix: add plugin_path
This commit is contained in:
parent
3a31a4ce3b
commit
1df2c3a369
|
@ -56,6 +56,11 @@ in
|
||||||
then "${entry}/lib/lib${entry.pname}.so"
|
then "${entry}/lib/lib${entry.pname}.so"
|
||||||
else "")
|
else "")
|
||||||
cfg.config.plugins;
|
cfg.config.plugins;
|
||||||
|
path =
|
||||||
|
if cfg.config.plugins == null
|
||||||
|
then ""
|
||||||
|
else
|
||||||
|
"${lib.lists.last cfg.config.plugins}/lib";
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
home.packages = lib.optional (cfg.package != null) cfg.package;
|
home.packages = lib.optional (cfg.package != null) cfg.package;
|
||||||
|
@ -63,6 +68,7 @@ in
|
||||||
xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml { }).generate "reset"
|
xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml { }).generate "reset"
|
||||||
{
|
{
|
||||||
plugins = fetchedPlugins;
|
plugins = fetchedPlugins;
|
||||||
|
plugin_path = path;
|
||||||
}; #++ (pkgs.formats.toml cfg.config.plugin_config);
|
}; #++ (pkgs.formats.toml cfg.config.plugin_config);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue