From f93b6c72638e8f1c7f3b4dd9ad97bd47fda6ef0a Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Sun, 18 Aug 2024 19:32:45 +0300 Subject: [PATCH] docs: add LXC docs --- README.md | 2 ++ docs/lxc.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docs/lxc.md diff --git a/README.md b/README.md index 4eb7fec..514cc44 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # nix-arta +## Extra Docs + * [LXC](docs/lxc.md) ## Inspiration [pluiedev/flake](https://github.com/pluiedev/flake) for structure. diff --git a/docs/lxc.md b/docs/lxc.md new file mode 100644 index 0000000..445756e --- /dev/null +++ b/docs/lxc.md @@ -0,0 +1,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! + -- 2.44.1