1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

awesome: fix luaModules using pkgs.lua instead of awesome.lua (#3258)

Mirroring my change to awesome module in nixos:
b79f9e9b8a
This commit is contained in:
Anton Bulakh 2022-11-01 20:43:20 +02:00 committed by GitHub
parent 722e8d65d3
commit 8957d53199
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ let
cfg = config.xsession.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"}");