1{ lib, config, pkgs, ... }:
2
3with lib;
4let
5 cfg = config.modules.development;
6in {
7 options.modules.development.zig = {
8 enable = mkOption {
9 default = cfg.enable;
10 example = true;
11 description = "Whether to enable Zig configuration.";
12 type = types.bool;
13 };
14 };
15
16 config = mkIf cfg.zig.enable {
17 home.packages = with pkgs; [ zig ];
18 };
19}