oizys/modules/langs/nim.nix
2024-01-23 19:13:42 -06:00

27 lines
513 B
Nix

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