From ed5328c8de44eb407be7912fbacba7984cc6b2ac Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 1 Apr 2024 23:39:21 +0800 Subject: [PATCH] docs: kubevirt installation --- hosts/k8s/disko-config/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/k8s/disko-config/README.md b/hosts/k8s/disko-config/README.md index 8c3cc9f9..52e2c02a 100644 --- a/hosts/k8s/disko-config/README.md +++ b/hosts/k8s/disko-config/README.md @@ -40,6 +40,16 @@ nix-shell -p git vim gnumake git clone https://github.com/ryan4yin/nix-config.git cd nix-config + +# one line sudo nix run --experimental-features "nix-command flakes" 'github:nix-community/disko#disko-install' -- \ --write-efi-boot-entries --disk main /dev/nvme0n1 --flake .#kubevirt-shoryu + + +# or step by step +## 1. partition & format the disk via disko +sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./disko-fs.nix +## 2. install nixos +# NOTE: the root password you set here will be discarded when reboot +sudo nixos-install --root /mnt --flake .#suzu --no-root-password --show-trace --verbose ```