Skip to content

Commit

Permalink
chore: adds dev environment with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoliveira committed Sep 23, 2024
1 parent 4a39e93 commit 940908a
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
94 changes: 94 additions & 0 deletions flake.lock

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

20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
description = "Distributex - HTMX + NGINX + NIX";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
utils.url = "github:numtide/flake-utils";
conipkgs.url = "github:cristianoliveira/nixpkgs";
};
outputs = { self, nixpkgs, utils, conipkgs }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ (final: prev: {
co = import conipkgs { pkgs = final; };
})];
};
in {
devShells.default = import ./shell.nix { inherit pkgs; };
});
}
9 changes: 9 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.docker
pkgs.docker-compose

pkgs.co.funzzy
];
}

0 comments on commit 940908a

Please sign in to comment.