Skip to content

Commit

Permalink
feat: implement exception sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikheil committed Jan 31, 2024
0 parents commit 9adb546
Show file tree
Hide file tree
Showing 9 changed files with 1,965 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/.direnv
/dist
.vscode

.DS_Store
node_modules
.env
.npmrc
tsconfig.tsbuildinfo
66 changes: 66 additions & 0 deletions flake.lock

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

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
systems.url = "github:nix-systems/default";
base-images = {
url = "github:stafftastic/base-images";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
};
};

outputs = { self, nixpkgs, systems, base-images }:
let
lib = nixpkgs.lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system: nixpkgs.legacyPackages.${system});
in {
devShell = eachSystem (system: pkgsFor.${system}.mkShell {
buildInputs = with pkgsFor.${system}; [
nodejs-18_x
];
});
packages = eachSystem (system: {
baseImage = base-images.packages.${system}.nodejs18.override {
extraEnv = [
"HOST=0.0.0.0"
"PORT=80"
];
};
});
};
}
Loading

0 comments on commit 9adb546

Please sign in to comment.