DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 5e3bf6ea5e8fd26bcced2602d24da52ef4d60ab3 nix-arta/docs/lxc.md -rw-r--r-- 1.0 KiB
5e3bf6eaJonni Liljamo feat(system/hosts/dns): add entries for each host 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# LXC
Docs for LXC things.

## WIP: Creating a new NixOS LXC container
### Download the NixOS system tarball
Download from [hydra.nixos.org](https://hydra.nixos.org/project/nixos).
"-small" releases don't do system tarballs, download a normal release.

Save the release in Proxmox as "nixos-system-x86_64-linux-${RELEASE}-${BUILD_ID}.tar.xz".\
For example, the current tarball is named "nixos-system-x86_64-linux-24.05-269898867.tar.xz", which comes from [hydra.nixos.org/build/269898867](https://hydra.nixos.org/build/269898867).

### Create the container from the image
Do a normal container setup, and set the IP temporarily via Proxmox.

### Log into the container and ready it for the first remote rebuild
Open root SSH permissions.

### Make an entry in this repository for the container
Also make secrets configuration.

A bare minimum setup, meaning a host with:
 * the LXC profile,
 * the base role,
 * IP combo in util

### nixos-rebuild switch
Might need two rebuilds.

### Take out IP configuration from Proxmox
And done!