oizys/modules/langs/nim.nix
2024-01-26 00:09:59 -06:00

26 lines
461 B
Nix

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