Skip to content

Commit 3c33107

Browse files
committed
Add devenv files
1 parent 8c47f78 commit 3c33107

File tree

5 files changed

+135
-1
lines changed

5 files changed

+135
-1
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ website/package-lock.json
4747
!.yarn/plugins
4848
!.yarn/releases
4949
!.yarn/sdks
50-
!.yarn/versions
50+
!.yarn/versions# Devenv
51+
.devenv*
52+
devenv.local.nix
53+
54+
# direnv
55+
.direnv

devenv.lock

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"nodes": {
3+
"devenv": {
4+
"locked": {
5+
"dir": "src/modules",
6+
"lastModified": 1737028622,
7+
"owner": "cachix",
8+
"repo": "devenv",
9+
"rev": "4e5b00134bf03f16af6b25b80abb38c598cfe239",
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": 1733328505,
23+
"owner": "edolstra",
24+
"repo": "flake-compat",
25+
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
26+
"type": "github"
27+
},
28+
"original": {
29+
"owner": "edolstra",
30+
"repo": "flake-compat",
31+
"type": "github"
32+
}
33+
},
34+
"gitignore": {
35+
"inputs": {
36+
"nixpkgs": [
37+
"pre-commit-hooks",
38+
"nixpkgs"
39+
]
40+
},
41+
"locked": {
42+
"lastModified": 1709087332,
43+
"owner": "hercules-ci",
44+
"repo": "gitignore.nix",
45+
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
46+
"type": "github"
47+
},
48+
"original": {
49+
"owner": "hercules-ci",
50+
"repo": "gitignore.nix",
51+
"type": "github"
52+
}
53+
},
54+
"nixpkgs": {
55+
"locked": {
56+
"lastModified": 1733477122,
57+
"owner": "cachix",
58+
"repo": "devenv-nixpkgs",
59+
"rev": "7bd9e84d0452f6d2e63b6e6da29fe73fac951857",
60+
"type": "github"
61+
},
62+
"original": {
63+
"owner": "cachix",
64+
"ref": "rolling",
65+
"repo": "devenv-nixpkgs",
66+
"type": "github"
67+
}
68+
},
69+
"pre-commit-hooks": {
70+
"inputs": {
71+
"flake-compat": "flake-compat",
72+
"gitignore": "gitignore",
73+
"nixpkgs": [
74+
"nixpkgs"
75+
]
76+
},
77+
"locked": {
78+
"lastModified": 1735882644,
79+
"owner": "cachix",
80+
"repo": "pre-commit-hooks.nix",
81+
"rev": "a5a961387e75ae44cc20f0a57ae463da5e959656",
82+
"type": "github"
83+
},
84+
"original": {
85+
"owner": "cachix",
86+
"repo": "pre-commit-hooks.nix",
87+
"type": "github"
88+
}
89+
},
90+
"root": {
91+
"inputs": {
92+
"devenv": "devenv",
93+
"nixpkgs": "nixpkgs",
94+
"pre-commit-hooks": "pre-commit-hooks"
95+
}
96+
}
97+
},
98+
"root": "root",
99+
"version": 7
100+
}

devenv.nix

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ pkgs, lib, config, inputs, ... }:
2+
3+
{
4+
packages = [
5+
pkgs.git
6+
pkgs.jq
7+
pkgs.yq
8+
pkgs.pre-commit
9+
pkgs.kubectl
10+
pkgs.awscli
11+
];
12+
13+
languages.javascript = {
14+
enable = true;
15+
package = pkgs.nodejs_20; # Replace with your desired version
16+
};
17+
languages.typescript.enable = true;
18+
languages.javascript.yarn.enable = true;
19+
languages.terraform.enable = true;
20+
}

devenv.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
2+
inputs:
3+
nixpkgs:
4+
url: github:cachix/devenv-nixpkgs/rolling
5+
6+
allowUnfree: true

direnvrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_url "https://raw.githubusercontent.com/cachix/devenv/82c0147677e510b247d8b9165c54f73d32dfd899/direnvrc" "sha256-7u4iDd1nZpxL4tCzmPG0dQgC5V+/44Ba+tHkPob1v2k="
2+
3+
use devenv

0 commit comments

Comments
 (0)