added go, zig, and ruby, as well as environment

This commit is contained in:
2025-04-18 22:05:19 -06:00
parent 685d0e3bba
commit 690893bff0
7 changed files with 138 additions and 24 deletions

View File

@@ -54,6 +54,11 @@
inherit system;
config.allowUnfree = true;
};
langList = builtins.filter (name: name != "emacs.nix") (
builtins.map (file: builtins.replaceStrings [ ".nix" ] [ "" ] (baseNameOf file)) (
builtins.attrNames (builtins.readDir ./modules/dev)
)
);
createConfig =
name: local-nixpkgs:
let
@@ -86,18 +91,11 @@
server = createConfig "server" inputs.nixpkgs-small;
shell = createConfig "shell" inputs.nixpkgs;
};
devShells.${system} = {
inherit (self.nixosConfigurations.shell.config.devShells)
cc
docker
haskell
javascript
julia
nix
python
rust
sh
;
};
devShells.${system} = builtins.listToAttrs (
map (lang: {
name = lang;
value = self.nixosConfigurations.shell.config.devShells.${lang};
}) langList
);
};
}