Skip to content

Homelab - powered by nix and NixOS

Notifications You must be signed in to change notification settings

deedee-ops/nixlab

Folders and files

NameName
Last commit message
Last commit date
Mar 27, 2025
Mar 16, 2025
Mar 28, 2025
Mar 28, 2025
Mar 30, 2025
Dec 30, 2024
Oct 8, 2024
Nov 6, 2024
Dec 5, 2024
Oct 27, 2024
Nov 5, 2024
Feb 20, 2025
Oct 20, 2024
Dec 5, 2024
Mar 23, 2025
Mar 16, 2025
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>