Skip to content

Commit

Permalink
chore: make build base vm script, local-independent
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Nov 3, 2024
1 parent 34ad02d commit fa17112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions local/scripts/bin/build-base-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa17112

Please sign in to comment.