helm/modules/dev/lua.nix

30 lines
706 B
Nix
Raw Normal View History

# modules/dev/lua.nix --- https://www.lua.org/
#
# I use lua for modding, awesomewm or Love2D for rapid gamedev prototyping (when
# godot is overkill and I have the luxury of avoiding JS). I write my Love games
# in moonscript to get around lua's idiosynchrosies. That said, I install love2d
# on a per-project basis.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.dev.lua = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.dev.lua.enable {
my = {
packages = with pkgs; [
lua
luaPackages.moonscript
luarocks
];
zsh.rc = ''eval "$(luarocks path --bin)"'';
};
};
}