2
0

update readme with nix setup and disclaimer, increase scale max to 10

This commit is contained in:
2025-09-22 15:35:04 +02:00
parent a0212a3355
commit 050273e51d
10 changed files with 1268 additions and 5 deletions

25
shell.nix Normal file
View File

@@ -0,0 +1,25 @@
{ pkgs ? import <nixpkgs> {} }:
let
lib = import <nixpkgs/lib>;
buildNodeJs = pkgs.callPackage "${<nixpkgs>}/pkgs/development/web/nodejs/nodejs.nix" {
python = pkgs.python3;
};
nodejsVersion = lib.fileContents ./.nvmrc;
nodejs = buildNodeJs {
enableNpm = true;
version = nodejsVersion;
sha256 = "032801kg24j04xmf09m0vxzlcz86sv21s24lv9l4cfv08k1c4byp";
};
# Overlay to use custom nodejs for nodePackages
customPkgs = pkgs // { inherit nodejs; };
in customPkgs.mkShell {
buildInputs = with customPkgs; [
nodejs
nodePackages."@angular/cli"
];
}