25 lines
413 B
Nix
25 lines
413 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
|
|
];
|
|
};
|
|
}
|