fixed weird path nonsense

This commit is contained in:
2026-07-04 16:43:04 +01:00
parent a9b2d46580
commit bdd6ec3efa
2 changed files with 5 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
-- ~/.config/hypr/autoload.lua
-- 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
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')

View File

@@ -63,6 +63,9 @@
(wrappers.lib.wrapPackage {
inherit pkgs package exePath flags;
runtimeInputs = builtins.attrValues runtimePackages;
env = {
"MODULES_ROOT" = ./.;
};
}).overrideAttrs (old: {
passthru = (old.passthru or {}) // {inherit runtimePackages;};
});