nixos/awesome: fix luaModules using pkgs.lua instead of awesome.lua

This commit is contained in:
Anton Bulakh 2022-08-16 04:49:36 +03:00 committed by Matthieu Coudron
parent e9a25f0a02
commit b79f9e9b8a

View file

@ -6,7 +6,7 @@ let
cfg = config.services.xserver.windowManager.awesome;
awesome = cfg.package;
getLuaPath = lib : dir : "${lib}/${dir}/lua/${pkgs.luaPackages.lua.luaversion}";
getLuaPath = lib: dir: "${lib}/${dir}/lua/${awesome.lua.luaversion}";
makeSearchPath = lib.concatMapStrings (path:
" --search " + (getLuaPath path "share") +
" --search " + (getLuaPath path "lib")