-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
53 lines (51 loc) · 1.56 KB
/
flake.nix
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
services-flake.url = "github:juspay/services-flake";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = inputs.nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.process-compose-flake.flakeModule
];
perSystem = {pkgs, ...}: {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
corepack
nodejs_22
];
};
process-compose."default" = {config, ...}: {
imports = [
inputs.services-flake.processComposeModules.default
];
services.tempo.tempo.enable = true;
services.grafana.grafana = {
enable = true;
http_port = 4000;
extraConf = {
"auth.anonymous" = {
enabled = true;
org_role = "Editor";
};
};
datasources = with config.services.tempo.tempo; [
{
name = "Tempo";
type = "tempo";
access = "proxy";
url = "http://${httpAddress}:${builtins.toString httpPort}";
}
];
};
services.redis.redis.enable = true;
settings.processes.tsx = {
command = "pnpm dev";
};
};
};
};
}