From 7953d23a01a1ee8340c7c65b13dd3d64902a6eea Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 30 Oct 2026 15:20:43 +0100 Subject: notes/deploy: Rename to avoid name conflict with server deploy --- notes/deploy.md | 35 ----------------------------------- notes/deploy_config.md | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 notes/deploy.md create mode 100644 notes/deploy_config.md (limited to 'notes') diff --git a/notes/deploy.md b/notes/deploy.md deleted file mode 100644 index fa6384f6..00000000 --- a/notes/deploy.md +++ /dev/null @@ -1,35 +0,0 @@ -# How to deploy a new host - -1. Boot the minimal nixos-iso and get an ssh shell -1. Perform disk configuration via disko: -```bash -export NIX_CONFIG="experimental-features = nix-command flakes" -nix shell nixpkgs#lix - -sudo --preserve-env=NIX_CONFIG nix run github:nix-community/disko/latest -- --mode destroy,format,mount --flake git+https://git.foss-syndicate.org/bpeetz/nixos-config?ref=prime#apzu - -sudo git clone https://git.foss-syndicate.org/bpeetz/nixos-config /mnt/etc/nixos/ - -sudo nixos-generate-config --root /mnt -sudo nixos-install - -sudo nixos-enter -export NIX_CONFIG="experimental-features = nix-command flakes" -nix shell nixpkgs#lix - -nix shell nixpkgs#git nixpkgs#nvd - -git config --global --add safe.directory /etc/nixos -cd /etc/nixos - -./scripts/build.sh apzu -``` - -```bash -nix run github:nix-community/nixos-anywhere -- \ - --flake "git+https://git.foss-syndicate.org/bpeetz/nixos-config?ref=prime#apzu" \ - --target-host "root@nixos.fritz.box" \ - --build-on local \ - --disko-mode disko \ - --extra-files /tmp/apzu_root -``` diff --git a/notes/deploy_config.md b/notes/deploy_config.md new file mode 100644 index 00000000..fa6384f6 --- /dev/null +++ b/notes/deploy_config.md @@ -0,0 +1,35 @@ +# How to deploy a new host + +1. Boot the minimal nixos-iso and get an ssh shell +1. Perform disk configuration via disko: +```bash +export NIX_CONFIG="experimental-features = nix-command flakes" +nix shell nixpkgs#lix + +sudo --preserve-env=NIX_CONFIG nix run github:nix-community/disko/latest -- --mode destroy,format,mount --flake git+https://git.foss-syndicate.org/bpeetz/nixos-config?ref=prime#apzu + +sudo git clone https://git.foss-syndicate.org/bpeetz/nixos-config /mnt/etc/nixos/ + +sudo nixos-generate-config --root /mnt +sudo nixos-install + +sudo nixos-enter +export NIX_CONFIG="experimental-features = nix-command flakes" +nix shell nixpkgs#lix + +nix shell nixpkgs#git nixpkgs#nvd + +git config --global --add safe.directory /etc/nixos +cd /etc/nixos + +./scripts/build.sh apzu +``` + +```bash +nix run github:nix-community/nixos-anywhere -- \ + --flake "git+https://git.foss-syndicate.org/bpeetz/nixos-config?ref=prime#apzu" \ + --target-host "root@nixos.fritz.box" \ + --build-on local \ + --disko-mode disko \ + --extra-files /tmp/apzu_root +``` -- cgit v1.3.1