-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
73 lines (62 loc) · 2.31 KB
/
flake.nix
File metadata and controls
73 lines (62 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
description = "AlbertPlus Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_20
bun
doppler
nodePackages.vercel
git
gh
gum
];
shellHook = ''
gum spin --title "Installing dependencies..." -- bun install
# Check and configure Doppler
if [ -z "$(doppler configure get token --plain 2>/dev/null)" ]; then
gum style --foreground "#f9e2af" "Doppler not configured yet"
DOPPLER_TOKEN=$(gum input --password --placeholder "Enter your Doppler service token")
if [ -n "$DOPPLER_TOKEN" ]; then
echo "$DOPPLER_TOKEN" | doppler configure set token --scope /
gum style --foreground "#a6e3a1" "✅ Doppler configured successfully"
clear
else
gum style --foreground "#f38ba8" "⚠️ No token provided"
gum style --foreground "#f38ba8" --italic "Configure later with: echo 'your-token' | doppler configure set token --scope /"
fi
fi
gum style --foreground "#a6e3a1" \
--align center --width 60 --padding "1 2" \
"🚀 Development Environment Ready!"
gum style --foreground "#cba6f7" --bold \
--align center --width 60 --padding "0 2" \
"📦 Node.js: $(node --version)
🥖 Bun: $(bun --version)
"
gum style --bold "Available Commands:"
gum style --margin "0 2" \
"$(gum style --bold --foreground "#89b4fa" 'bun dev') - Start development servers" \
"$(gum style --bold --foreground "#89b4fa" 'bun dashboard') - Open Convex dashboard" \
"$(gum style --bold --foreground "#89b4fa" 'bun check') - Check code with Biome"
echo ""
'';
};
}
);
}