Add nix shell

This commit is contained in:
BuyMyMojo 2025-03-25 03:55:58 +11:00
parent 54f1588091
commit c3970dca5b
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
5 changed files with 272 additions and 218 deletions

27
flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1742669843,
"narHash": "sha256-G5n+FOXLXcRx+3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1e5b653dff12029333a6546c11e108ede13052eb",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

17
flake.nix Normal file
View file

@ -0,0 +1,17 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in
{
devShells."x86_64-linux".default = pkgs.callPackage ./shell.nix { inherit pkgs; };
};
}

View file

@ -12,10 +12,10 @@
"@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^4.2.1",
"@astrojs/node": "^9.1.3",
"@astrojs/preact": "^4.0.5",
"@astrojs/preact": "^4.0.6",
"@astrojs/rss": "^4.0.11",
"@astrojs/tailwind": "^5.1.5",
"astro": "^5.5.3",
"astro": "^5.5.4",
"astro-icon": "^1.1.5",
"dayjs": "^1.11.13",
"preact": "^10.26.4",
@ -28,6 +28,6 @@
"@iconify-json/meteor-icons": "^1.2.1",
"@iconify-json/tabler": "^1.2.17",
"@tailwindcss/typography": "^0.5.16",
"vite": "^6.2.2"
"vite": "^6.2.3"
}
}

429
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

11
shell.nix Normal file
View file

@ -0,0 +1,11 @@
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
packages = [
pkgs.nodejs
pkgs.pnpm
pkgs.biome
];
}