Skip to content

Homelab - powered by nix and NixOS

Notifications You must be signed in to change notification settings

deedee-ops/nixlab

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f3f70f9 · Dec 29, 2024
Dec 23, 2024
Dec 29, 2024
Dec 29, 2024
Dec 29, 2024
Dec 29, 2024
Dec 29, 2024
Oct 8, 2024
Nov 6, 2024
Dec 5, 2024
Oct 27, 2024
Nov 5, 2024
Dec 5, 2024
Oct 20, 2024
Dec 5, 2024
Dec 29, 2024
Dec 28, 2024
Nov 11, 2024
Oct 8, 2024

Repository files navigation

nixlab

Prepare base incus VM

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.

Launch the VM

# trusted is profile name
incus launch --vm nixos/base/vm <machine name> -c volatile.eth0.hwaddr=<mac address> -p trusted

Bootstrap machine to the VM

nix run .#bootstrap <machine name> [machine IP]
  • machine name is a machine identificator, one from the ./machines
  • machine ip is optional, if not provided, it will be picked up from ./machines/<machine>/default.nix

Deploy machine

deploy .#<machine name>

Install on a machine locally

nix run github:deedee-ops/nixlab#disko-install <machine name> <disk name> <disk device>