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

View File

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