mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-21 12:31:42 +02:00
chore: update flake.lock & pnpm-lock.yaml, remove node2nix
This commit is contained in:
parent
108ab6e5b0
commit
3bb7f0b346
12
flake.lock
generated
12
flake.lock
generated
@ -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": {
|
||||
|
25
flake.nix
25
flake.nix
@ -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 = {
|
||||
write = true; # Automatically fix typos
|
||||
ignored-words = [];
|
||||
enable = true;
|
||||
settings = {
|
||||
write = true; # Automatically fix typos
|
||||
ignored-words = [];
|
||||
# configPath = "./.typos.toml"; # relative to the flake root
|
||||
};
|
||||
};
|
||||
prettier = {
|
||||
write = true; # Automatically format files
|
||||
configPath = "./.prettierrc.yaml";
|
||||
enable = true;
|
||||
settings = {
|
||||
write = true; # Automatically format files
|
||||
configPath = "./.prettierrc.yaml"; # relative to the flake root
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
554
pnpm-lock.yaml
generated
554
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user