chore: update flake.lock & pnpm-lock.yaml, remove node2nix

This commit is contained in:
Ryan Yin 2025-06-16 21:57:09 +08:00
parent 108ab6e5b0
commit 3bb7f0b346
3 changed files with 297 additions and 294 deletions

12
flake.lock generated
View File

@ -57,11 +57,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1748302896,
"narHash": "sha256-ixMT0a8mM091vSswlTORZj93WQAJsRNmEvqLL+qwTFM=",
"lastModified": 1749857119,
"narHash": "sha256-tG5xUn3hFaPpAHYIvr2F88b+ovcIO5k1HqajFy7ZFPM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7848cd8c982f7740edf76ddb3b43d234cb80fc4d",
"rev": "5f4f306bea96741f1588ea4f450b2a2e29f42b98",
"type": "github"
},
"original": {
@ -94,11 +94,11 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1747372754,
"narHash": "sha256-2Y53NGIX2vxfie1rOW0Qb86vjRZ7ngizoo+bnXU9D9k=",
"lastModified": 1749636823,
"narHash": "sha256-WUaIlOlPLyPgz9be7fqWJA5iG6rHcGRtLERSCfUDne4=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "80479b6ec16fefd9c1db3ea13aeb038c60530f46",
"rev": "623c56286de5a3193aa38891a6991b28f9bab056",
"type": "github"
},
"original": {

View File

@ -16,7 +16,7 @@
flake-utils.lib.eachDefaultSystem (system: let
overlays = [
(self: super: rec {
nodejs = super.nodejs_20;
nodejs = super.nodejs_22;
pnpm = super.pnpm.override {inherit nodejs;};
yarn = super.yarn.override {inherit nodejs;};
prettier = super.nodePackages.prettier;
@ -25,7 +25,6 @@
pkgs = import nixpkgs {inherit overlays system;};
pkgs_chromium = import nixpkgs {inherit system;};
packages = with pkgs; [
node2nix
nodejs
pnpm
yarn
@ -40,18 +39,22 @@
pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
typos.enable = true; # Source code spell checker
alejandra.enable = true; # Nix linter
prettier.enable = true; # Markdown & TS formatter
};
settings = {
alejandra.enable = true; # formatter
# Source code spell checker
typos = {
enable = true;
settings = {
write = true; # Automatically fix typos
ignored-words = [];
# configPath = "./.typos.toml"; # relative to the flake root
};
};
prettier = {
enable = true;
settings = {
write = true; # Automatically format files
configPath = "./.prettierrc.yaml";
configPath = "./.prettierrc.yaml"; # relative to the flake root
};
};
};
};

554
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff