aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStellar Rounin <stellarrounin@gmail.com>2026-09-30 03:56:31 +0000
committerStellar Rounin <stellarrounin@gmail.com>2026-09-30 03:56:31 +0000
commitc957c761e44e19c7de28944760d1aa32064e7fe3 (patch)
tree244ede1c2922e4e155d5f792407ada3b58b156ca
parentc1b821de0ffa286cfd964817d1918c5e90545db4 (diff)
downloadunkagi-c957c761e44e19c7de28944760d1aa32064e7fe3.tar.xz
unkagi-c957c761e44e19c7de28944760d1aa32064e7fe3.zip
build(devenv): Add devenv
-rw-r--r--.gitignore11
-rw-r--r--devenv.lock65
-rw-r--r--devenv.nix52
-rw-r--r--devenv.yaml18
4 files changed, 146 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a547bf3..242cc1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,14 @@
+# Devenv
+.devenv*
+devenv.local.nix
+devenv.local.yaml
+
+# direnv
+.direnv
+
+# pre-commit
+.pre-commit-config.yaml
+
# Logs
logs
*.log
diff --git a/devenv.lock b/devenv.lock
new file mode 100644
index 0000000..20cf7d3
--- /dev/null
+++ b/devenv.lock
@@ -0,0 +1,65 @@
+{
+ "nodes": {
+ "devenv": {
+ "locked": {
+ "dir": "src/modules",
+ "lastModified": 1790701375,
+ "narHash": "sha256-0FpLHIRDYiyo3EMTnMQSobZQknZaa3JuWo6vmMCK76o=",
+ "owner": "cachix",
+ "repo": "devenv",
+ "rev": "fe20b5cba7ab5e93ae73f956a8d3efc50e1753f4",
+ "type": "github"
+ },
+ "original": {
+ "dir": "src/modules",
+ "owner": "cachix",
+ "repo": "devenv",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "inputs": {
+ "nixpkgs-src": "nixpkgs-src"
+ },
+ "locked": {
+ "lastModified": 1789506231,
+ "narHash": "sha256-vNkJbtmqyBfFhn/HnzQo4ROuoyYWuy/allqTfJb4kMY=",
+ "owner": "cachix",
+ "repo": "devenv-nixpkgs",
+ "rev": "c2f38fe7f9e04d9aadd354d380f2bd40531d9737",
+ "type": "github"
+ },
+ "original": {
+ "owner": "cachix",
+ "ref": "rolling",
+ "repo": "devenv-nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs-src": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1789370336,
+ "narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "c7def046b9a883d46974757852106483d741586f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "devenv": "devenv",
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+} \ No newline at end of file
diff --git a/devenv.nix b/devenv.nix
new file mode 100644
index 0000000..3b77c70
--- /dev/null
+++ b/devenv.nix
@@ -0,0 +1,52 @@
+{ pkgs, lib, config, inputs, ... }:
+
+{
+ # https://devenv.sh/basics/
+ env.GREET = "devenv";
+
+ # https://devenv.sh/packages/
+ packages = [ pkgs.git ];
+
+ # https://devenv.sh/languages/
+ languages.javascript = {
+ enable = true;
+
+ package = pkgs.nodejs;
+
+ pnpm.enable = true;
+ };
+
+ # https://devenv.sh/processes/
+ # processes.dev.exec = "${lib.getExe pkgs.watchexec} -n -- ls -la";
+
+ # https://devenv.sh/services/
+ # services.postgres.enable = true;
+
+ # https://devenv.sh/scripts/
+ scripts.hello.exec = ''
+ echo hello from $GREET
+ '';
+
+ # https://devenv.sh/basics/
+ enterShell = ''
+ hello # Run scripts directly
+ git --version # Use packages
+ '';
+
+ # https://devenv.sh/tasks/
+ # tasks = {
+ # "myproj:setup".exec = "mytool build";
+ # "devenv:enterShell".after = [ "myproj:setup" ];
+ # };
+
+ # https://devenv.sh/tests/
+ enterTest = ''
+ echo "Running tests"
+ git --version | grep --color=auto "${pkgs.git.version}"
+ '';
+
+ # https://devenv.sh/git-hooks/
+ # git-hooks.hooks.shellcheck.enable = true;
+
+ # See full reference at https://devenv.sh/reference/options/
+}
diff --git a/devenv.yaml b/devenv.yaml
new file mode 100644
index 0000000..3dcab58
--- /dev/null
+++ b/devenv.yaml
@@ -0,0 +1,18 @@
+# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
+inputs:
+ nixpkgs:
+ url: github:cachix/devenv-nixpkgs/rolling
+
+# If you're using non-OSS software, you can set allow_unfree to true.
+# allow_unfree: true
+
+# If you're not willing to allow unsupported packages:
+# allow_unsupported_system: false
+
+# If you're willing to use a package that's vulnerable
+# permitted_insecure_packages:
+# - "openssl-1.1.1w"
+
+# If you have more than one devenv you can merge them
+#imports:
+# - ./backend