Skip to content

Commit

Permalink
feat: add lua/luau tooling option, reorganize tooling into new folder
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Jan 19, 2025
1 parent 66c5c8c commit fcc9b66
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 9 deletions.
10 changes: 7 additions & 3 deletions modules/shared/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,25 @@ in
default = cfg.tooling.enable;
};

nix.enable = mkEnableOption "Enable Nix tooling" // {
gleam.enable = mkEnableOption "Enable Gleam tooling" // {
default = cfg.tooling.enable;
};

rust.enable = mkEnableOption "Enable Rust tooling" // {
lua.enable = mkEnableOption "Enable Lua/Luau tooling" // {
default = cfg.tooling.enable;
};

gleam.enable = mkEnableOption "Enable Gleam tooling" // {
nix.enable = mkEnableOption "Enable Nix tooling" // {
default = cfg.tooling.enable;
};

python.enable = mkEnableOption "Enable Python tooling" // {
default = cfg.tooling.enable;
};

rust.enable = mkEnableOption "Enable Rust tooling" // {
default = cfg.tooling.enable;
};
};
};
}
1 change: 1 addition & 0 deletions users/uncenter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

./apps
./programs
./tooling
];

xdg.enable = true;
Expand Down
2 changes: 0 additions & 2 deletions users/uncenter/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ in
go
jdk17
maven
lua
luajitPackages.luarocks
(taplo.override { withLsp = true; })
(tree-sitter.override {
webUISupport = true;
Expand Down
4 changes: 0 additions & 4 deletions users/uncenter/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@
./fzf.nix
./git.nix
./glamour.nix
./gleam.nix
./helix.nix
./izrss.nix
./neovim.nix
./nix.nix
./python.nix
./rust.nix
./spicetify.nix
./starship.nix
./taskwarrior.nix
Expand Down
9 changes: 9 additions & 0 deletions users/uncenter/tooling/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
imports = [
./gleam.nix
./lua.nix
./nix.nix
./python.nix
./rust.nix
];
}
File renamed without changes.
19 changes: 19 additions & 0 deletions users/uncenter/tooling/lua.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
lib,
pkgs,
osConfig,
...
}:
{
config = lib.mkIf osConfig.glade.tooling.lua.enable {
home.packages = with pkgs; [
lua
luajitPackages.luarocks

# Luau
luau
lune
selene
];
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fcc9b66

Please sign in to comment.