1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-05-13 11:36:07 +02:00
git.oat.zone--dark-firepit-.../modules/dev/c.nix

24 lines
418 B
Nix
Raw Normal View History

2022-01-11 18:44:40 +01:00
{ config, lib, pkgs, options, ... }:
with lib;
let
withLLVM = config.modules.dev.llvm.enable;
cfg = config.modules.dev.c;
in {
options.modules.dev.c = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
environment.systemPackages = if !withLLVM then with pkgs; [
gcc
] else with pkgs; [
clang
# clang-utils
];
};
}