Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deedee-ops/nixlab

Homelab - powered by nix and NixOS
https://github.com/deedee-ops/nixlab

gitops homelab nix nixos renovate selfhosted

Last synced: 4 days ago
JSON representation

Homelab - powered by nix and NixOS

Awesome Lists containing this project

README

        

# nixlab

## Prepare base incus VM

```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.

## Launch the VM

```bash
# trusted is profile name
incus launch --vm nixos/base/vm -c volatile.eth0.hwaddr= -p trusted
```

## Bootstrap machine to the VM

```bash
nix run .#bootstrap [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//default.nix`

## Deploy machine

```bash
deploy .#
```

## Install on a machine locally

```bash
nix run github:deedee-ops/nixlab#disko-install
```