Skip to content

Commit a3aacdc

Browse files
committed
Devenv Setup
1 parent 1a39e3c commit a3aacdc

File tree

5 files changed

+175
-0
lines changed

5 files changed

+175
-0
lines changed

.envrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
export DIRENV_WARN_TIMEOUT=20s
4+
5+
eval "$(devenv direnvrc)"
6+
7+
# `use devenv` supports the same options as the `devenv shell` command.
8+
#
9+
# To silence all output, use `--quiet`.
10+
#
11+
# Example usage: use devenv --quiet --impure --option services.postgres.enable:bool true
12+
use devenv

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ logs
1818
*.iml
1919
rebar3.crashdump
2020
*~
21+
22+
# Devenv
23+
.devenv*
24+
devenv.local.nix
25+
devenv.local.yaml
26+
27+
# direnv
28+
.direnv
29+
30+
# pre-commit
31+
.pre-commit-config.yaml

devenv.lock

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"nodes": {
3+
"devenv": {
4+
"locked": {
5+
"dir": "src/modules",
6+
"lastModified": 1770399425,
7+
"owner": "cachix",
8+
"repo": "devenv",
9+
"rev": "0f006b2e9f591cc44cf219048b5e33793530403b",
10+
"type": "github"
11+
},
12+
"original": {
13+
"dir": "src/modules",
14+
"owner": "cachix",
15+
"repo": "devenv",
16+
"type": "github"
17+
}
18+
},
19+
"flake-compat": {
20+
"flake": false,
21+
"locked": {
22+
"lastModified": 1767039857,
23+
"owner": "NixOS",
24+
"repo": "flake-compat",
25+
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
26+
"type": "github"
27+
},
28+
"original": {
29+
"owner": "NixOS",
30+
"repo": "flake-compat",
31+
"type": "github"
32+
}
33+
},
34+
"git-hooks": {
35+
"inputs": {
36+
"flake-compat": "flake-compat",
37+
"gitignore": "gitignore",
38+
"nixpkgs": [
39+
"nixpkgs"
40+
]
41+
},
42+
"locked": {
43+
"lastModified": 1769939035,
44+
"owner": "cachix",
45+
"repo": "git-hooks.nix",
46+
"rev": "a8ca480175326551d6c4121498316261cbb5b260",
47+
"type": "github"
48+
},
49+
"original": {
50+
"owner": "cachix",
51+
"repo": "git-hooks.nix",
52+
"type": "github"
53+
}
54+
},
55+
"gitignore": {
56+
"inputs": {
57+
"nixpkgs": [
58+
"git-hooks",
59+
"nixpkgs"
60+
]
61+
},
62+
"locked": {
63+
"lastModified": 1762808025,
64+
"owner": "hercules-ci",
65+
"repo": "gitignore.nix",
66+
"rev": "cb5e3fdca1de58ccbc3ef53de65bd372b48f567c",
67+
"type": "github"
68+
},
69+
"original": {
70+
"owner": "hercules-ci",
71+
"repo": "gitignore.nix",
72+
"type": "github"
73+
}
74+
},
75+
"nixpkgs": {
76+
"inputs": {
77+
"nixpkgs-src": "nixpkgs-src"
78+
},
79+
"locked": {
80+
"lastModified": 1770434727,
81+
"owner": "cachix",
82+
"repo": "devenv-nixpkgs",
83+
"rev": "8430f16a39c27bdeef236f1eeb56f0b51b33d348",
84+
"type": "github"
85+
},
86+
"original": {
87+
"owner": "cachix",
88+
"ref": "rolling",
89+
"repo": "devenv-nixpkgs",
90+
"type": "github"
91+
}
92+
},
93+
"nixpkgs-src": {
94+
"flake": false,
95+
"locked": {
96+
"lastModified": 1769922788,
97+
"narHash": "sha256-H3AfG4ObMDTkTJYkd8cz1/RbY9LatN5Mk4UF48VuSXc=",
98+
"owner": "NixOS",
99+
"repo": "nixpkgs",
100+
"rev": "207d15f1a6603226e1e223dc79ac29c7846da32e",
101+
"type": "github"
102+
},
103+
"original": {
104+
"owner": "NixOS",
105+
"ref": "nixpkgs-unstable",
106+
"repo": "nixpkgs",
107+
"type": "github"
108+
}
109+
},
110+
"root": {
111+
"inputs": {
112+
"devenv": "devenv",
113+
"git-hooks": "git-hooks",
114+
"nixpkgs": "nixpkgs",
115+
"pre-commit-hooks": [
116+
"git-hooks"
117+
]
118+
}
119+
}
120+
},
121+
"root": "root",
122+
"version": 7
123+
}

devenv.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2026 Erlang Ecosystem Foundation
3+
4+
{ pkgs, lib, config, inputs, ... }:
5+
{
6+
packages = with pkgs; [
7+
git
8+
reuse
9+
];
10+
11+
languages.erlang = {
12+
enable = true;
13+
};
14+
}

devenv.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
2+
inputs:
3+
nixpkgs:
4+
url: github:cachix/devenv-nixpkgs/rolling
5+
6+
# If you're using non-OSS software, you can set allowUnfree to true.
7+
# allowUnfree: true
8+
9+
# If you're willing to use a package that's vulnerable
10+
# permittedInsecurePackages:
11+
# - "openssl-1.1.1w"
12+
13+
# If you have more than one devenv you can merge them
14+
#imports:
15+
# - ./backend

0 commit comments

Comments
 (0)