From fa171123da51e2d9c4fac3b1f430368c00be0a08 Mon Sep 17 00:00:00 2001 From: Igor Rzegocki Date: Sun, 3 Nov 2024 22:48:39 +0100 Subject: [PATCH] chore: make build base vm script, local-independent --- README.md | 3 +++ local/scripts/bin/build-base-vm.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e3b4ba..16c2e83 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ ```bash nix run .#build-base-vm + +# or if you don't want to clone repo +nix run github:deedee-ops/nixlab#build-base-vm ``` This will build and import `nixos/base/vm` image to incus. diff --git a/local/scripts/bin/build-base-vm.sh b/local/scripts/bin/build-base-vm.sh index cdd797d..7486a63 100755 --- a/local/scripts/bin/build-base-vm.sh +++ b/local/scripts/bin/build-base-vm.sh @@ -2,7 +2,7 @@ # https://wiki.nixos.org/wiki/Incus#Custom_Images incus image import --alias nixos/base/vm \ - "$(nix build .#nixosVMs.base.config.system.build.metadata --print-out-paths)/tarball/nixos-system-x86_64-linux.tar.xz" \ - "$(nix build .#nixosVMs.base.config.system.build.qemuImage --print-out-paths)/nixos.qcow2" + "$(nix build github:deedee-ops/nixlab#nixosVMs.base.config.system.build.metadata --print-out-paths)/tarball/nixos-system-x86_64-linux.tar.xz" \ + "$(nix build github:deedee-ops/nixlab#nixosVMs.base.config.system.build.qemuImage --print-out-paths)/nixos.qcow2" incus image list nixos/base/vm