added go, zig, and ruby, as well as environment
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -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
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user