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

@ -36,6 +36,7 @@ in {
packages = with pkgs; [ packages = with pkgs; [
calc calc
curl
dysk dysk
fd fd
file file

View file

@ -22,5 +22,6 @@
./pass.nix ./pass.nix
./halloy.nix ./halloy.nix
./ai.nix ./ai.nix
./programming.nix
]; ];
} }

View file

@ -65,6 +65,7 @@ in {
zed.enable = true; zed.enable = true;
terminal.enable = true; terminal.enable = true;
ai.enable = true; ai.enable = true;
programming.enable = true;
}; };
}; };
}; };

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
];
};
}

View file

@ -1,13 +0,0 @@
{pkgs, ...}: {
static = true;
packages = with pkgs; [
binutils
cmake
curl
gdb
gnumake
rustup
valgrind
];
}

View file

@ -1,11 +0,0 @@
{pkgs, ...}: {
static = true;
packages = with pkgs; [
pipenv
(python310.withPackages (packages:
with packages; [
setuptools
]))
];
}

View file

@ -1,13 +0,0 @@
{pkgs, ...}: {
static = true;
packages = with pkgs; [
binutils
cmake
curl
gdb
gnumake
rustup
valgrind
];
}

View file

@ -1,11 +0,0 @@
{pkgs, ...}: {
static = true;
packages = with pkgs; [
pipenv
(python310.withPackages (packages:
with packages; [
setuptools
]))
];
}