Skip to content

Commit

Permalink
chore: add nix flake + lock
Browse files Browse the repository at this point in the history
  • Loading branch information
iluxonchik committed Nov 27, 2024
1 parent d38a79b commit 3524b71
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
77 changes: 77 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
description = "Next.js development environment with Podman";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# Systems support
systems.url = "github:nix-systems/default";
};

outputs = { self, nixpkgs, systems, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Core dependencies
nodejs_20
nodePackages.typescript
podman
podman-compose
direnv
git
];

# Add environment variables
env = {
NODE_ENV = "production";
};
};
});
}

0 comments on commit 3524b71

Please sign in to comment.