summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2024-05-19 19:43:58 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2024-05-19 19:43:58 +0200
commit55f81a6d2419e0480ba91bfa948ad256117be00d (patch)
tree0c0af6c5cc87628b795d7ede86b71d274b07b7f4
parentd5978bc46aa7fa16e90d9ae067e5e2a894b6f275 (diff)
add devenv
-rw-r--r--.gitignore5
-rw-r--r--devenv.lock200
-rw-r--r--devenv.nix4
-rw-r--r--devenv.yaml5
4 files changed, 214 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6849dee
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+### devenv
+.devenv/
+.devenv.flake.nix
+devenv.local.nix
+.pre-commit-config.yaml
diff --git a/devenv.lock b/devenv.lock
new file mode 100644
index 0000000..ef8a19d
--- /dev/null
+++ b/devenv.lock
@@ -0,0 +1,200 @@
+{
+ "nodes": {
+ "devenv": {
+ "locked": {
+ "dir": "src/modules",
+ "lastModified": 1716095607,
+ "owner": "cachix",
+ "repo": "devenv",
+ "rev": "32983f6dbc1583e333eaaf8126dc21dfbcbef291",
+ "treeHash": "6d5dd30b138123c570417f2bac23874d884674c7",
+ "type": "github"
+ },
+ "original": {
+ "dir": "src/modules",
+ "owner": "cachix",
+ "repo": "devenv",
+ "type": "github"
+ }
+ },
+ "flake-compat": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1696426674,
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
+ "treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb",
+ "type": "github"
+ },
+ "original": {
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "type": "github"
+ }
+ },
+ "flake-parts": {
+ "inputs": {
+ "nixpkgs-lib": "nixpkgs-lib"
+ },
+ "locked": {
+ "lastModified": 1715865404,
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "rev": "8dc45382d5206bd292f9c2768b8058a8fd8311d9",
+ "treeHash": "61e087e69e665425a22a28f9d9a1ed337a517cd9",
+ "type": "github"
+ },
+ "original": {
+ "id": "flake-parts",
+ "type": "indirect"
+ }
+ },
+ "gitignore": {
+ "inputs": {
+ "nixpkgs": [
+ "pre-commit-hooks",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1709087332,
+ "owner": "hercules-ci",
+ "repo": "gitignore.nix",
+ "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
+ "treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hercules-ci",
+ "repo": "gitignore.nix",
+ "type": "github"
+ }
+ },
+ "my-nixpkgs": {
+ "inputs": {
+ "flake-parts": "flake-parts",
+ "nixpkgs": "nixpkgs",
+ "nur": "nur"
+ },
+ "locked": {
+ "lastModified": 1714739245,
+ "owner": "qaristote",
+ "repo": "my-nixpkgs",
+ "rev": "7fa29ba27f9a972a12038ec5b6ed77665bc8e159",
+ "treeHash": "e8fe5090a82d779317a1c9e4a1c9f9e620c69d0d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "qaristote",
+ "repo": "my-nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1716097317,
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "8535fb92661f37ff9f0da3007fbc942f7d134b41",
+ "treeHash": "7a5b8d16b3b91b3ac3492d332cd3ce3c46f94452",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "type": "indirect"
+ }
+ },
+ "nixpkgs-lib": {
+ "locked": {
+ "lastModified": 1716140575,
+ "narHash": "sha256-QBx10+k6JWz6u7VsohfSw8g8hjdBZEf8CFzXH1/1Z94=",
+ "type": "tarball",
+ "url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
+ },
+ "original": {
+ "type": "tarball",
+ "url": "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"
+ }
+ },
+ "nixpkgs-stable": {
+ "locked": {
+ "lastModified": 1716061101,
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "e7cc61784ddf51c81487637b3031a6dd2d6673a2",
+ "treeHash": "0dfa8dcfb5f2b25b4be1a6f873c087557f335fac",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-23.11",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_2": {
+ "locked": {
+ "lastModified": 1716097317,
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "8535fb92661f37ff9f0da3007fbc942f7d134b41",
+ "treeHash": "7a5b8d16b3b91b3ac3492d332cd3ce3c46f94452",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nur": {
+ "locked": {
+ "lastModified": 1716129264,
+ "owner": "nix-community",
+ "repo": "NUR",
+ "rev": "1a4c14eb3e4c0c025e0fe088e844bc12cfad8559",
+ "treeHash": "7a9e0efe03a7c3bfeb0b3140bb2f5eb22bbf1793",
+ "type": "github"
+ },
+ "original": {
+ "id": "nur",
+ "type": "indirect"
+ }
+ },
+ "pre-commit-hooks": {
+ "inputs": {
+ "flake-compat": "flake-compat",
+ "gitignore": "gitignore",
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "nixpkgs-stable": "nixpkgs-stable"
+ },
+ "locked": {
+ "lastModified": 1715870890,
+ "owner": "cachix",
+ "repo": "pre-commit-hooks.nix",
+ "rev": "fa606cccd7b0ccebe2880051208e4a0f61bfc8c1",
+ "treeHash": "ea38e19d9964cd72fb9936d75b9807756c754234",
+ "type": "github"
+ },
+ "original": {
+ "owner": "cachix",
+ "repo": "pre-commit-hooks.nix",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "devenv": "devenv",
+ "my-nixpkgs": "my-nixpkgs",
+ "nixpkgs": "nixpkgs_2",
+ "pre-commit-hooks": "pre-commit-hooks"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/devenv.nix b/devenv.nix
new file mode 100644
index 0000000..3734b1c
--- /dev/null
+++ b/devenv.nix
@@ -0,0 +1,4 @@
+{inputs, ...}: {
+ imports = [inputs.my-nixpkgs.devenvModules.personal];
+ languages.nix.enable = true;
+}
diff --git a/devenv.yaml b/devenv.yaml
new file mode 100644
index 0000000..38233b1
--- /dev/null
+++ b/devenv.yaml
@@ -0,0 +1,5 @@
+inputs:
+ nixpkgs:
+ url: github:NixOS/nixpkgs/nixpkgs-unstable
+ my-nixpkgs:
+ url: github:qaristote/my-nixpkgs