From 4de91c746dbd9a708c4c9a12f0fed898623d88d6 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 22 Jul 2025 13:19:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20master:=20work=20in=20progress?= =?UTF-8?q?=20[might=20break]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/shell.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nix/shell.nix diff --git a/nix/shell.nix b/nix/shell.nix new file mode 100644 index 0000000..ee99b68 --- /dev/null +++ b/nix/shell.nix @@ -0,0 +1,33 @@ +{ pkgs ? import {} }: + + pkgs.mkShell { + # nativeBuildInputs is usually what you want -- tools you need to run + nativeBuildInputs = with pkgs.buildPackages; [ + + monolith + nodejs_22 + nixos-generators + qemu + + ]; + + shellHooks = '' + export NIX_SHELL_XRFORGE=1 + + echo "available commands:" + echo "" + echo "" + echo "nix-build nix/xrforge.nix" + echo "nixos-generate -f -c nix/server.nix # generate server-image for ~32 hyperscalers" + echo " # see https://mynixos.com/nixos-generators" + echo "example:" + echo " $ nixos-generate -f iso -c nix/server.nix + echo " $ qemu-system-x86_64 -cdrom " # test/run image + echo "" + echo " $ docker load < $(nix-build nix/docker.nix)" + echo " $ docker run -t hello-docker:y74sb4nrhxr975xs7h83izgm8z75x5fc" + + ''; +} + +