migrated all languages to devshell

This commit is contained in:
2025-04-18 21:29:02 -06:00
parent ecb9f386ce
commit 023744a872
11 changed files with 256 additions and 94 deletions

View File

@@ -1,15 +1,32 @@
{
config,
lib,
pkgs,
config,
...
}:
let
packages = builtins.attrValues {
inherit (pkgs) julia; # High-performance dynamic language for technical computing
};
in
{
options.my.dev.julia.enable = lib.mkEnableOption "enable";
options = {
my.dev.julia.enable = lib.mkEnableOption "Install Julia globally";
devShells.julia = lib.mkOption {
type = lib.types.package;
default = pkgs.mkShell {
inherit packages;
name = "julia-dev-shell";
shellHook = ''
echo "🔬 Julia dev environment"
'';
};
description = "Julia development shell";
};
};
config = lib.mkIf config.my.dev.julia.enable {
users.users.jawz.packages = builtins.attrValues {
inherit (pkgs) julia;
users.users.jawz = {
inherit packages;
};
};
}