infrastructure/nixos-configurations/cyprianspitz
Fabian Hauser d8930608f3
All checks were successful
CI / build (push) Successful in 6m19s
Add caral documentation
2025-01-06 13:26:24 +02:00
..
applications Fix vpn configuration 2024-12-11 13:01:22 +02:00
docs Add caral documentation 2025-01-06 13:26:24 +02:00
default.nix Upgrade all stateVersions 2024-12-06 19:30:08 +02:00
disko-config.nix Commit files for public release 2024-10-02 16:57:36 +03:00
filesystems.nix Commit files for public release 2024-10-02 16:57:36 +03:00
networking.nix Add caral documentation 2025-01-06 13:26:24 +02:00
README.md Add caral documentation 2025-01-06 13:26:24 +02:00
secrets.nix Extract vpn exit node config to module 2024-12-11 15:25:32 +02:00
virtualisation.nix Commit files for public release 2024-10-02 16:57:36 +03:00

Host: Cyprianspitz (+Router: Caral)

Operations

Reboot requires passphrase.

# Get HDD Password:
sops decrypt --extract '["system"]["hdd"]' private/nixos-configurations/cyprianspitz/secrets.sops.yaml

ssh -p 8223 root@calanda.plessur-ext.net.qo.is

Direct remote ssh access:

ssh -p 8222 root@calanda.plessur-ext.net.qo.is

Hardware

TODO

Networking: Caral Internet Router

A MikroTik CCR2004-1G-2XS-PCIe is used for internet access. It's a fiber card with build in router, supporting 2x 25Gbit SFP28 cages and 1Gbit RJ45 eth.

The manual states:

This form-factor does come with certain limitations that you should keep in mind. The CCR NIC card needs some time to boot up compared to ASIC-based setups. If the host system is up before the CCR card, it will not appear among the available devices. You should add a PCIe device initialization delay after power-up in the BIOS. Or you will need to re-initialize the PCIe devices from the HOST system.

In our case, since networking is reinitialized after the LUKS password promt, this should not be a issue in practice. However, if networking would not be available, contact someone for a physical reboot and wait longer before entering the HDD password.

To reload the card's virtual interfaces on a running system:

echo "1" > /sys/bus/pci/devices/0000\:01\:00.0/remove
sleep 2
echo "1" > /sys/bus/pci/rescan

To restart the card on a running system:

echo "1" > /sys/bus/pci/devices/0000\:01\:00.0/reset
sleep 2m # Wait for reboot
echo "1" > /sys/bus/pci/rescan

Top Overview

PCIE Side

HDD Bay

Note that the slot in the middle of the SATA bay is not connected due to the mainboard only having 4 SATA plugs.