Files
dev/configs/nixos/modules/shell/bazel.nix

16 lines
339 B
Nix

{
config,
lib,
pkgs,
...
}:
# Bazel for the primary user's shell environment.
{
options.modules.shell.bazel.enable =
lib.mkEnableOption "Bazel for the primary user's shell environment";
config = lib.mkIf config.modules.shell.bazel.enable {
home-manager.users.${config.user.name}.home.packages = [ pkgs.bazel ];
};
}