🔧 master: work in progress [might break]
This commit is contained in:
parent
33a555ea87
commit
4de91c746d
1 changed files with 33 additions and 0 deletions
33
nix/shell.nix
Normal file
33
nix/shell.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{ pkgs ? import <nixos-unstable> {} }:
|
||||||
|
|
||||||
|
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 <type> -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 <isofile>" # test/run image
|
||||||
|
echo ""
|
||||||
|
echo " $ docker load < $(nix-build nix/docker.nix)"
|
||||||
|
echo " $ docker run -t hello-docker:y74sb4nrhxr975xs7h83izgm8z75x5fc"
|
||||||
|
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue