use flake for system zig download

This commit is contained in:
Daylin Morgan 2024-04-04 12:13:49 -05:00
parent 2c278b0501
commit 5c0e1cb3ac
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1,4 +1,5 @@
{ {
inputs,
config, config,
lib, lib,
pkgs, pkgs,
@ -6,12 +7,12 @@
}: let }: let
inherit (lib) mkIfIn; inherit (lib) mkIfIn;
cfg = config.oizys.languages; cfg = config.oizys.languages;
zig = inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin;
in { in {
config = mkIfIn "misc" cfg { config = mkIfIn "misc" cfg {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
zig
go go
rustup rustup
]; ] ++ [ zig ];
}; };
} }