Files
nixos-dotfiles/modules/coding/langs/c.nix
2025-12-20 23:05:28 +08:00

24 lines
305 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.coding.langs.c;
in
{
options.my.coding.langs.c = {
enable = lib.mkEnableOption "c";
};
config = lib.mkIf cfg.enable {
my.hm.home.packages = with pkgs; [
gcc
(lib.hiPrio clang)
clang-tools
cmake
];
};
}