Skip to content

Commit 9578c27

Browse files
committed
chore: init nix flake and delete unused env variables
1 parent 3f416c1 commit 9578c27

File tree

6 files changed

+49
-102
lines changed

6 files changed

+49
-102
lines changed

.env.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
NODE_ENV=development
2-
DATABASE_URL=postgres://user:postgres@localhost:5432/
32
BETTER_AUTH_SECRET=dev-dev-dev-change-me
43
BETTER_AUTH_URL=http://localhost:5173
5-
REDIS_URL=redis://:devpass@localhost:6379

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1+
#!/usr/bin/env bash
2+
# Used by https://direnv.net
3+
4+
# Automatically reload when this file changes
5+
watch_file devshell.nix
6+
7+
# Load `nix develop`
18
use flake
9+
10+
# Extend the environment with per-user overrides
11+
source_env_if_exists .envrc.local

GEMINI.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

devshell.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{ pkgs }:
2+
pkgs.mkShell {
3+
# Add build dependencies
4+
packages = with pkgs; [
5+
bun
6+
];
7+
8+
# Add environment variables
9+
env = { };
10+
11+
# Load custom bash code
12+
shellHook = ''
13+
14+
'';
15+
}

flake.lock

Lines changed: 16 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
{
2+
description = "Simple flake with a devshell";
3+
4+
# Add all your dependencies here
25
inputs = {
3-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
4-
flake-utils.url = "github:numtide/flake-utils";
6+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
7+
blueprint.url = "github:numtide/blueprint";
8+
blueprint.inputs.nixpkgs.follows = "nixpkgs";
59
};
610

7-
outputs =
8-
{ nixpkgs, flake-utils, ... }:
9-
flake-utils.lib.eachDefaultSystem (
10-
system:
11-
let
12-
pkgs = nixpkgs.legacyPackages.${system};
13-
in
14-
{
15-
devShells.default = pkgs.mkShell {
16-
packages = with pkgs; [ redis ];
17-
};
18-
}
19-
);
11+
# Load the blueprint
12+
outputs = inputs: inputs.blueprint { inherit inputs; };
2013
}

0 commit comments

Comments
 (0)