Skip to content

Declarative Syntax

tspillow! edited this page Sep 24, 2026 · 11 revisions

Declarative System and Syntax

Introduction

The declarative system that Sinix Linux is a powerful and efficient system coded in Lua and will be configured by you in Lua.

How it works is that it was coded to reserve local functions and "APIs" that run commands and structure calculations to get to the desired result.

In the source code of the declarative system, there are 3 files, absolute.lua, main.lua and add-pkg.lua.

absolute.lua has these functions: run_cmd (runs a command), is_package_installed (checks if the queried package(s) is(are) installed), is_service_enabled (checks if the queried service(s) is(are) enabled) and sys_engine.apply_packages (probably self-explainatory.)

For further investigation or whatever, the source code is here.

Clone this wiki locally