add lua
This commit is contained in:
parent
2ab8c8a5c0
commit
8838778d84
4 changed files with 31 additions and 0 deletions
|
@ -562,3 +562,6 @@ end)
|
|||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||
-- }}}
|
||||
|
||||
-- Gaps for dopamine
|
||||
beautiful.useless_gap = 5
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
javascript.enable = true;
|
||||
python.enable = true;
|
||||
rust.enable = true;
|
||||
lua.enable = true;
|
||||
# too heavy
|
||||
unity.enable = false;
|
||||
};
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
./unityhub.nix
|
||||
./nixd.nix
|
||||
./nil.nix
|
||||
./lua.nix
|
||||
];
|
||||
}
|
||||
|
|
26
modules/dev/lua.nix
Normal file
26
modules/dev/lua.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
outputs,
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.dev.lua;
|
||||
in {
|
||||
options.modules.dev.lua = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
# lua language server
|
||||
lua-language-server
|
||||
# lua
|
||||
lua
|
||||
# luarocks
|
||||
luarocks
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue