feat(shells): Test
This commit is contained in:
parent
b819c45b4c
commit
b4fd8f2dbf
5 changed files with 163 additions and 0 deletions
|
@ -84,5 +84,64 @@
|
|||
Tibo-NixFat.modules = [ ./hosts/Tibo-NixFat ];
|
||||
Tibo-NixTest.modules = [ ./hosts/Tibo-NixTest ];
|
||||
};
|
||||
|
||||
outputsBuilder = channels: {
|
||||
devShells = {
|
||||
default = channels.nixpkgs.mkShell {
|
||||
name = "devShell";
|
||||
packages = with channels.nixpkgs; [
|
||||
nodejs
|
||||
];
|
||||
};
|
||||
unstable = let
|
||||
pkgs = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in channels.nixpkgs.mkShell {
|
||||
name = "Unstable";
|
||||
packages = with pkgs; [
|
||||
anytype
|
||||
];
|
||||
};
|
||||
rust = let
|
||||
pkgs = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in channels.nixpkgs.mkShell {
|
||||
name = "Rust Shell";
|
||||
packages = with pkgs; [
|
||||
rustc
|
||||
cargo
|
||||
rustup
|
||||
|
||||
(jetbrains.plugins.addPlugins jetbrains.rust-rover [ "github-copilot" ])
|
||||
];
|
||||
};
|
||||
webdev = let
|
||||
pkgs = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in channels.nixpkgs.mkShell {
|
||||
name = "Web development Shell";
|
||||
packages = with pkgs; [
|
||||
nodejs
|
||||
playwright-test
|
||||
playwright-driver
|
||||
playwright-driver.browsers
|
||||
|
||||
# IDE's
|
||||
(jetbrains.plugins.addPlugins jetbrains.webstorm [ "github-copilot" ])
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
|
||||
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
30
nixos/shells/c/default.nix
Normal file
30
nixos/shells/c/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
description = "C Flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
lib = import lib;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
cmake
|
||||
gcc
|
||||
gnumake
|
||||
valgrind
|
||||
|
||||
# You might want to use your own IDE.
|
||||
(jetbrains.plugins.addPlugins jetbrains.clion [ "github-copilot" ])
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
26
nixos/shells/java/default.nix
Normal file
26
nixos/shells/java/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
description = "Java Flake";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
( system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
jdk8
|
||||
openjdk17
|
||||
|
||||
# You might want to use your own IDE.
|
||||
(jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ])
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
24
nixos/shells/latex/default.nix
Normal file
24
nixos/shells/latex/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
description = "LaTeX Flake";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils}:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
texlive.combined.scheme-full
|
||||
pgfplots
|
||||
biber
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
24
nixos/shells/rust/default.nix
Normal file
24
nixos/shells/rust/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
description = "Rust Flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
];
|
||||
shellHook = ''
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue