1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-06-10 17:56:10 +02:00
git.oat.zone--dark-firepit-.../modules/dev/zig.nix

21 lines
348 B
Nix
Raw Permalink Normal View History

2022-04-20 10:53:28 +02:00
{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.dev.zig;
in {
options.modules.dev.zig = {
enable = mkOption {
type = types.bool;
default = false;
description = "Adds zig tools to the environment.";
};
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
zig
];
};
}