oizys/modules/langs/nim.nix

21 lines
306 B
Nix

{
nixpkgs,
config,
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages;
in {
options.languages.nim = mkEnableOption "nim";
config = mkIf cfg.nim {
environment.systemPackages = with pkgs; [
nim
nim-atlas
nimble
nimlsp
];
};
}