home: create programming module and move programming stuff out of shenvs
This commit is contained in:
parent
7bdfcc58e7
commit
dcfd230b02
10 changed files with 35 additions and 48 deletions
|
|
@ -36,6 +36,7 @@ in {
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
calc
|
calc
|
||||||
|
curl
|
||||||
dysk
|
dysk
|
||||||
fd
|
fd
|
||||||
file
|
file
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,6 @@
|
||||||
./pass.nix
|
./pass.nix
|
||||||
./halloy.nix
|
./halloy.nix
|
||||||
./ai.nix
|
./ai.nix
|
||||||
|
./programming.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
32
home/modules/programming.nix
Normal file
32
home/modules/programming.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
0
home/platforms/fabian@posixlycorrect/shenvs/.gitkeep
Normal file
0
home/platforms/fabian@posixlycorrect/shenvs/.gitkeep
Normal file
|
|
@ -1,13 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
static = true;
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
binutils
|
|
||||||
cmake
|
|
||||||
curl
|
|
||||||
gdb
|
|
||||||
gnumake
|
|
||||||
rustup
|
|
||||||
valgrind
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
static = true;
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
pipenv
|
|
||||||
(python310.withPackages (packages:
|
|
||||||
with packages; [
|
|
||||||
setuptools
|
|
||||||
]))
|
|
||||||
];
|
|
||||||
}
|
|
||||||
0
home/platforms/fabian@t14/shenvs/.gitkeep
Normal file
0
home/platforms/fabian@t14/shenvs/.gitkeep
Normal file
|
|
@ -1,13 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
static = true;
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
binutils
|
|
||||||
cmake
|
|
||||||
curl
|
|
||||||
gdb
|
|
||||||
gnumake
|
|
||||||
rustup
|
|
||||||
valgrind
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
static = true;
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
pipenv
|
|
||||||
(python310.withPackages (packages:
|
|
||||||
with packages; [
|
|
||||||
setuptools
|
|
||||||
]))
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue