Restructure
This commit is contained in:
parent
b0cba077a9
commit
7598c1f19f
28
flake.nix
28
flake.nix
|
@ -2,6 +2,10 @@
|
|||
description = "A very basic flake";
|
||||
inputs.fup.url = "github:gytis-ivaskevicius/flake-utils-plus";
|
||||
|
||||
nixConfig = {
|
||||
nix = ["http://cache.home"];
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
fup,
|
||||
|
@ -9,16 +13,16 @@
|
|||
}:
|
||||
fup.lib.eachSystem [fup.lib.system.x86_64-linux] (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
in {
|
||||
devShells = {
|
||||
nix = pkgs.mkShell {
|
||||
|
||||
shells = {
|
||||
nix = {
|
||||
name = "generic nix";
|
||||
packages = with pkgs; [
|
||||
alejandra
|
||||
rnix-lsp
|
||||
];
|
||||
};
|
||||
node = pkgs.mkShell {
|
||||
node = {
|
||||
name = "generic node";
|
||||
packages = with pkgs; [
|
||||
nodejs
|
||||
|
@ -31,7 +35,23 @@
|
|||
nodePackages.vscode-css-languageserver-bin
|
||||
];
|
||||
};
|
||||
nodeIonic = {
|
||||
name = "generic node + ionic";
|
||||
packages =
|
||||
shells.node.packages
|
||||
++ (with pkgs; [
|
||||
android-studio
|
||||
]);
|
||||
};
|
||||
python = {
|
||||
name = "generic python";
|
||||
packages = with pkgs; [
|
||||
python3Packages.python-lsp-server
|
||||
];
|
||||
};
|
||||
};
|
||||
in {
|
||||
devShells = pkgs.lib.attrsets.mapAttrs (name: value: pkgs.mkShell value) shells;
|
||||
|
||||
hydraJobs = self.devShells.${system};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue