2023-08-07 00:07:33 +04:00
|
|
|
{
|
|
|
|
outputs,
|
|
|
|
options,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-08-01 16:24:09 +04:00
|
|
|
let
|
2023-08-07 00:07:33 +04:00
|
|
|
cfg = config.modules.dev.lua;
|
|
|
|
in {
|
|
|
|
options.modules.dev.lua = {
|
2024-08-01 16:24:09 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
2023-08-07 00:07:33 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-08-07 00:07:33 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
lua-language-server
|
|
|
|
lua
|
|
|
|
luarocks
|
2023-08-22 21:17:11 +04:00
|
|
|
stylua
|
|
|
|
selene
|
2023-08-07 00:07:33 +04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|