summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authoralex <[email protected]>2026-10-19 11:36:25 +0200
committeralex <[email protected]>2026-10-19 11:36:25 +0200
commita5ae904a8b3a8f0f02889942b4ee81e85bd271d2 (patch)
tree174c735405eaa02dac36b44bb6fb02d3412e5f41 /flake.nix
parentbe7856168c790ef9dc6478cc429633b032ca09b5 (diff)
downloadgodot-testing-a5ae904a8b3a8f0f02889942b4ee81e85bd271d2.tar.xz
godot-testing-a5ae904a8b3a8f0f02889942b4ee81e85bd271d2.zip
added flake.nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..0ddf298
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,29 @@
+{
+ description = "Godot project environment with OpenCode and MCP support";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ in
+ {
+ devShells.default = pkgs.mkShell {
+ packages = with pkgs; [
+ godot_4
+ nodejs_20
+ opencode
+ ];
+
+ shellHook = ''
+ export GODOT_PATH="${pkgs.godot_4}/bin/godot"
+ echo "Godot development environment loaded."
+ '';
+ };
+ }
+ );
+}