oizys/modules/languages/zig.nix

17 lines
323 B
Nix
Raw Normal View History

2024-04-05 12:18:44 -05:00
{
inputs,
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIfIn;
cfg = config.oizys.languages;
zig = inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin;
zls = inputs.zls.outputs.packages.${pkgs.system}.default;
in {
config = mkIfIn "zig" cfg {
environment.systemPackages = [zig zls];
};
}