add flake.nix

This commit is contained in:
2024-09-07 17:10:33 +01:00
parent da07a8ba8f
commit 60fb7b50d1
3 changed files with 3050 additions and 2339 deletions

26
flake.lock generated Normal file
View File

@@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1725704419,
"narHash": "sha256-35DCc49kiHAmHjAHrx/Bt//+I76aYe9HVNh7pxqjvko=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6ecb754c326510106873747aa6233d90c463e966",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

32
flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
description = "my website";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?tag=24.05";
};
outputs = { nixpkgs, ... }:
let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
in
{
devShells = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in
{
default = pkgs.mkShell {
packages = [
pkgs.pnpm
pkgs.flyctl
pkgs.nodejs_20
];
};
}
);
};
}

5331
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff