feat(shells): Test

This commit is contained in:
Tibo De Peuter 2025-09-16 21:26:28 +02:00
parent b819c45b4c
commit b4fd8f2dbf
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
5 changed files with 163 additions and 0 deletions

View file

@ -84,5 +84,64 @@
Tibo-NixFat.modules = [ ./hosts/Tibo-NixFat ]; Tibo-NixFat.modules = [ ./hosts/Tibo-NixFat ];
Tibo-NixTest.modules = [ ./hosts/Tibo-NixTest ]; 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
'';
};
};
};
}; };
} }

View 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" ])
];
};
});
}

View 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" ])
];
};
});
}

View 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
];
};
}
);
}

View 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 = ''
'';
};
});
}