fixed weird path nonsense
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
-- ~/.config/hypr/autoload.lua
|
-- ~/.config/hypr/autoload.lua
|
||||||
|
|
||||||
-- Path to search
|
-- Path to search
|
||||||
local modules = os.getenv("HOME") .. "/.config/hypr/modules"
|
-- local modules = os.getenv("HOME") .. "/.config/hypr/modules"
|
||||||
|
local modules = os.getenv("MODULES_ROOT") .. "/modules"
|
||||||
|
|
||||||
-- Get all files in modules dir
|
-- Get all files in modules dir
|
||||||
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')
|
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')
|
||||||
|
|||||||
@@ -63,6 +63,9 @@
|
|||||||
(wrappers.lib.wrapPackage {
|
(wrappers.lib.wrapPackage {
|
||||||
inherit pkgs package exePath flags;
|
inherit pkgs package exePath flags;
|
||||||
runtimeInputs = builtins.attrValues runtimePackages;
|
runtimeInputs = builtins.attrValues runtimePackages;
|
||||||
|
env = {
|
||||||
|
"MODULES_ROOT" = ./.;
|
||||||
|
};
|
||||||
}).overrideAttrs (old: {
|
}).overrideAttrs (old: {
|
||||||
passthru = (old.passthru or {}) // {inherit runtimePackages;};
|
passthru = (old.passthru or {}) // {inherit runtimePackages;};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user