28 lines
570 B
Nix
28 lines
570 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
feature = import ./common.nix { inherit pkgs; };
|
|
in
|
|
{
|
|
options = {
|
|
devShells.cc = lib.mkOption {
|
|
type = lib.types.package;
|
|
default = feature.devShell;
|
|
description = "C/C++ development shell";
|
|
};
|
|
my.dev.cc = {
|
|
enable = lib.mkEnableOption "Install C/C++ tooling globally";
|
|
users = lib.mkOption {
|
|
type = inputs.self.lib.usersOptionType lib;
|
|
default = config.my.toggleUsers.dev;
|
|
description = "Users to install C/C++ packages for";
|
|
};
|
|
};
|
|
};
|
|
}
|