home: create programming module and move programming stuff out of shenvs

This commit is contained in:
Fabian Montero 2026-05-16 13:13:49 -06:00
parent 7bdfcc58e7
commit dcfd230b02
Signed by: fabian
GPG key ID: 3EDA9AE3937CCDE3
10 changed files with 35 additions and 48 deletions

View file

@ -0,0 +1,32 @@
{
pkgs,
lib,
config,
...
}:
with lib; let
cfg = config.local.programs.programming;
in {
options.local.programs.programming = {
enable = mkEnableOption "programming";
debugging = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
binutils
cmake
gcc
gnumake
pkg-config
python314
rustup
uv
] ++ optionals cfg.debugging [
gdb
valgrind
];
};
}