This commit is contained in:
Peritia 2025-09-10 12:17:16 +02:00
parent fc0abdd4bb
commit aca73cdd0f
73 changed files with 3873 additions and 381 deletions

View file

@ -1,3 +1,13 @@
# Lua (System Module)
#
# Provides:
# - Lua (standard interpreter)
# - LuaJIT (Just-In-Time compiler)
#
# Options:
# - enable → Enable Lua system module
#
{ config, lib, pkgs, ... }:
let
@ -5,16 +15,13 @@ let
in
{
options.nyx-module.system.lua = {
enable = lib.mkEnableOption "Enable lua (system) module";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.lua;
description = "Package to install for lua.";
};
enable = lib.mkEnableOption "Enable Lua (system module)";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
environment.systemPackages = with pkgs; [
lua
luajit
];
};
}