1
1
# Setup
2
2
3
3
## Switch to UEFI
4
- First submit a support ticket asking them to enable UEFI.
5
- See: https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/
4
+
5
+ First submit a support ticket asking them to enable UEFI. See:
6
+ https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/
6
7
7
8
# Correct the NVMe namespace's block size
8
9
9
- Verify the NVMe disks are formatted at the namespace level with 4096 blocks.
10
- See https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Hardware.html#nvme-low-level-formatting
10
+ Verify the NVMe disks are formatted at the namespace level with 4096 blocks. See
11
+ https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Hardware.html#nvme-low-level-formatting
11
12
12
13
This disk's LBA is 512:
13
14
@@ -236,7 +237,8 @@ nixos-generate-config --root /mnt
236
237
In the ` configuration.nix ` :
237
238
238
239
1 . Add ` hetzner.nix ` to the list of ` imports ` at the top.
239
- 2 . Add an authorized key and enable SSH. This will be removed later when it is imported into NixOps, so it is just for bootstrapping:
240
+ 2 . Add an authorized key and enable SSH. This will be removed later when it is
241
+ imported into NixOps, so it is just for bootstrapping:
240
242
241
243
```
242
244
services.openssh.enable = true;
@@ -245,24 +247,28 @@ users.users.root.openssh.authorizedKeys.keys = [ "ssh-..." ];
245
247
246
248
### Hardware Configuration Changes
247
249
248
- Edit ` hardware-configuration.nix ` and change the fileSystems value for ` /nix/var/nix ` to make it required for boot:
250
+ Edit ` hardware-configuration.nix ` and change the fileSystems value for
251
+ ` /nix/var/nix ` to make it required for boot:
249
252
250
253
``` nix
251
- fileSystems."/nix/var/nix/db" =
252
- { device = "rpool/local/nix/db";
253
- fsType = "zfs";
254
- neededForBoot = true;
255
- };
254
+ fileSystems."/nix/var/nix/db" =
255
+ { device = "rpool/local/nix/db";
256
+ fsType = "zfs";
257
+ neededForBoot = true;
258
+ };
256
259
```
257
260
258
261
### Hetzner.nix
259
262
260
263
Then create a file, ` hetzner.nix ` .
261
264
262
- * The all-zeros hostId is fine, though I generated one with ` head -c4 /dev/urandom | od -A none -t x4 `
263
- * The ` enp7s0 ` and ` MACAddress ` value I got from ` ip addr `
264
- * The IP addresses and gateways I got from the Robot webpage under the IPs tab, hovering over the IPv4 and IPv6 addresses.
265
- * Thee DNS resolvers I got from https://docs.hetzner.com/dns-console/dns/general/recursive-name-servers/
265
+ - The all-zeros hostId is fine, though I generated one with
266
+ ` head -c4 /dev/urandom | od -A none -t x4 `
267
+ - The ` enp7s0 ` and ` MACAddress ` value I got from ` ip addr `
268
+ - The IP addresses and gateways I got from the Robot webpage under the IPs tab,
269
+ hovering over the IPv4 and IPv6 addresses.
270
+ - Thee DNS resolvers I got from
271
+ https://docs.hetzner.com/dns-console/dns/general/recursive-name-servers/
266
272
267
273
``` nix
268
274
{
@@ -302,4 +308,4 @@ Then run:
302
308
303
309
```
304
310
nixos-install -I nixpkgs=channel:nixos-21.11
305
- ```
311
+ ```
0 commit comments