blob: fa6384f63ee7391de43f1acd63d7e750b6ecd95a (
plain) (
blame)
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
32
33
34
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
```
|