nixos/modules/dev/cc.nix
2024-08-01 16:24:09 +04:00

25 lines
411 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.dev.cc;
in
{
options.modules.dev.cc = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
gcc
gnumake
cmake
clang
gdb
pkg-config
# lsp
clang-tools
cmake-language-server
# lint
cpplint
];
};
}