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