Files
website/flake.nix

33 lines
699 B
Nix
Raw Normal View History

2024-09-07 17:10:33 +01:00
{
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
];
};
}
);
};
}