oizys/modules/languages/zig.nix

22 lines
341 B
Nix
Raw Normal View History

2024-04-05 12:18:44 -05:00
{
inputs,
config,
lib,
pkgs,
...
2024-05-06 14:32:00 -05:00
}:
let
2024-04-05 12:18:44 -05:00
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;
2024-05-06 14:32:00 -05:00
in
{
2024-04-05 12:18:44 -05:00
config = mkIfIn "zig" cfg {
2024-05-06 14:32:00 -05:00
environment.systemPackages = [
zig
zls
];
2024-04-05 12:18:44 -05:00
};
}