diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-01-04 11:25:48 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-01-04 11:25:48 +0530 |
| commit | aa0bdc1e4b65e3fbbb10c49cd1d4e20d491359b3 (patch) | |
| tree | 65acefff0973b025ac0e9a9fd97c54d8289f284a /nixos/languages | |
| parent | 042ed4718236a375c99125772b60c9afa9cfd40f (diff) | |
rust lsp fix + languages on/off
Diffstat (limited to 'nixos/languages')
| -rw-r--r-- | nixos/languages/default.nix | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/nixos/languages/default.nix b/nixos/languages/default.nix index 4f5cc75..b469aa4 100644 --- a/nixos/languages/default.nix +++ b/nixos/languages/default.nix @@ -1,15 +1,13 @@ -{ config, pkgs, ... }: +{ config, pkgs, languages, ... }: { imports = - [ - ./beam.nix - ./c.nix - ./asm.nix - ./go.nix - ./javascript.nix - ./lua.nix - ./python.nix - ./rust.nix - ./zig.nix - ]; + (if languages.beam then [ ./beam.nix ] else []) ++ + (if languages.c then [ ./c.nix ] else []) ++ + (if languages.asm then [ ./asm.nix ] else []) ++ + (if languages.go then [ ./go.nix ] else []) ++ + (if languages.javascript then [ ./javascript.nix ] else []) ++ + (if languages.lua then [ ./lua.nix ] else []) ++ + (if languages.python then [ ./python.nix ] else []) ++ + (if languages.rust then [ ./rust.nix ] else []) ++ + (if languages.zig then [ ./zig.nix ] else []); } |
