nixos/modules/dev/cc.nix

26 lines
413 B
Nix
Raw Normal View History

2023-07-09 15:44:29 +04:00
{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.dev.cc;
in
{
options.modules.dev.cc = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-09 15:44:29 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-09 15:44:29 +04:00
users.users.sako.packages = with pkgs; [
gcc
gnumake
cmake
clang
gdb
2023-07-10 17:36:02 +04:00
pkg-config
2023-07-31 17:15:24 +04:00
# lsp
clang-tools
cmake-language-server
# lint
2024-08-09 17:55:44 +04:00
# cpplint
2023-07-09 15:44:29 +04:00
];
};
}