diff options
Diffstat (limited to 'nixos/languages/default.nix')
| -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 []); } |
