nixos/modules/dev/lua.nix
2024-08-01 16:24:09 +04:00

25 lines
343 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.dev.lua;
in {
options.modules.dev.lua = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
lua-language-server
lua
luarocks
stylua
selene
];
};
}