This commit is contained in:
Peritia 2025-09-10 12:17:16 +02:00
parent fc0abdd4bb
commit aca73cdd0f
73 changed files with 3873 additions and 381 deletions

View file

@ -1,3 +1,14 @@
# C Compiler (System Module)
#
# Provides:
# - GCC (C/C++)
# - Clang (alternative C/C++)
# - Mono (C#)
#
# Options:
# - enable → Enable C compiler toolchain
#
{ config, lib, pkgs, ... }:
let
@ -5,16 +16,15 @@ let
in
{
options.nyx-module.system.c-compiler = {
enable = lib.mkEnableOption "Enable c-compiler (system) module";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.c-compiler;
description = "Package to install for c-compiler.";
};
enable = lib.mkEnableOption "Enable C compiler (system module)";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
environment.systemPackages = with pkgs; [
gcc # C & C++
clang # alt C/C++
mono # C#
];
};
}