From 8838778d8461c0237b6c06c22190aea820173df6 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 6 Aug 2023 23:07:33 +0300 Subject: [PATCH] add lua --- config/awesome/rc.lua | 3 +++ hosts/sakotop/configuration.nix | 1 + modules/dev/default.nix | 1 + modules/dev/lua.nix | 26 ++++++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 modules/dev/lua.nix diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index d3aafaa9..3eb9d18b 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -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 diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 9a830553..37641cfc 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -71,6 +71,7 @@ javascript.enable = true; python.enable = true; rust.enable = true; + lua.enable = true; # too heavy unity.enable = false; }; diff --git a/modules/dev/default.nix b/modules/dev/default.nix index bedd8678..367651af 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -8,5 +8,6 @@ ./unityhub.nix ./nixd.nix ./nil.nix + ./lua.nix ]; } diff --git a/modules/dev/lua.nix b/modules/dev/lua.nix new file mode 100644 index 00000000..9ee0592b --- /dev/null +++ b/modules/dev/lua.nix @@ -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 + ]; + }; +}