1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-11-26 06:08:48 +01:00
git.oat.zone--dark-firepit-.../modules/dev/c.nix
System administrator affdf52f23 refactoring
2022-04-20 09:53:28 +01:00

24 lines
408 B
Nix

{ 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 {
user.packages = if !withLLVM then with pkgs; [
gcc
] else with pkgs; [
clang_12
# clang-utils
];
};
}