diff --git a/README.md b/README.md index 997a495..75e19df 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,12 @@ System and user configuration for NixOS-based systems. | **Terminal:** | Ghostty | ## Provisioning a new host + > [nixos-anywhere](https://github.com/nix-community/nixos-anywhere) is the module used > for provisioning Generate a new SSH host key in "$temp/etc/ssh" as per [this guide](https://nix-community.github.io/nixos-anywhere/howtos/secrets.html#example-decrypting-an-openssh-host-key-with-pass). + ``` ssh-keygen -t ed25519 -f /tmp/ssh_host_ed25519_key ``` @@ -29,6 +31,7 @@ Create a new directory under `hosts/` with a system configuration and disk layou Boot the NixOS installer (or any Linux distribution) on the target. Then run: + ``` nix run github:nix-community/nixos-anywhere -- \ --disk-encryption-keys /tmp/secret.key /tmp/secret.key \ @@ -40,15 +43,19 @@ nix run github:nix-community/nixos-anywhere -- \ ### Post install If backups are configured, you'll need to run: + ``` borgmatic init --encryption repokey-blake2 ``` + then restart `borgmatic`. To join the Tailscale network, run: + ``` tailscale up --login-server https://headscale.vimium.net ``` + then visit the URL, SSH onto `vps1` and run `headscale --user mesh nodes register --key `. The new node can optionally be given a friendly name with `headscale node rename -i `. diff --git a/hosts/artemis/README.md b/hosts/artemis/README.md index 3543896..00012d9 100644 --- a/hosts/artemis/README.md +++ b/hosts/artemis/README.md @@ -1,22 +1,26 @@ # Artemis ## Overview + Couch gaming PC and media centre ## Specs -* CPU - AMD Ryzen 7 9800X3D @ 4.70GHz -* Chipset - AMD B850 -* Memory - 64 GB DDR5 -* Motherboard - ASUS ROG STRIX B850-I Gaming WiFi -* GPU - AMD Radeon 7900 XTX -* Case - MCPRUE Apollo S v4 + +- CPU - AMD Ryzen 7 9800X3D @ 4.70GHz +- Chipset - AMD B850 +- Memory - 64 GB DDR5 +- Motherboard - ASUS ROG STRIX B850-I Gaming WiFi +- GPU - AMD Radeon 7900 XTX +- Case - MCPRUE Apollo S v4 ### Disks + Device | Partitions _(filesystem, size, usage)_ --- | --- WD Black SN850X | `/dev/nvme0n1p1` (EFI, 500 MiB, NixOS Boot)
`/dev/nvme0n1p2` (ZFS, 4 TiB, NixOS Root) #### ZFS pool layout + ``` rpool/ ├── local @@ -32,5 +36,6 @@ rpool/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets. ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `artemis.mesh.vimium.net`. diff --git a/hosts/atlas/README.md b/hosts/atlas/README.md index 1a92df9..dea53a6 100644 --- a/hosts/atlas/README.md +++ b/hosts/atlas/README.md @@ -1,24 +1,28 @@ # Atlas ## Overview + A general purpose mini computer used for web browsing and multimedia. ## Specs -* CPU - Intel Core i7-4790K @ 4.00GHz -* Chipset - Intel Z97 -* Memory - 8 GB DDR3 -* Motherboard - ASRock Z97M-ITX -* GPU - AMD Radeon R9 290X 4GB -* Case - SilverStone Sugo SG13 -* NIC - Intel Gigabit I218-V, Broadcom BCM4360 802.11ac + +- CPU - Intel Core i7-4790K @ 4.00GHz +- Chipset - Intel Z97 +- Memory - 8 GB DDR3 +- Motherboard - ASRock Z97M-ITX +- GPU - AMD Radeon R9 290X 4GB +- Case - SilverStone Sugo SG13 +- NIC - Intel Gigabit I218-V, Broadcom BCM4360 802.11ac ### Disks + Device | Partitions _(filesystem, size, usage)_ --- | --- Samsung SSD 850 | `/dev/sda1` (NTFS, 500 GiB, Windows XP) Samsung SSD 850 | `/dev/sdb1` (EFI, 500 MiB, NixOS Boot)
`/dev/sdb2` (ZFS, 500 GiB, NixOS Root) #### ZFS pool layout + ``` rpool/ ├── local @@ -34,5 +38,6 @@ rpool/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets. ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `atlas.mesh.vimium.net`. diff --git a/hosts/eos/README.md b/hosts/eos/README.md index f0a0490..2311986 100644 --- a/hosts/eos/README.md +++ b/hosts/eos/README.md @@ -1,18 +1,22 @@ # Eos ## Overview + ThinkPad X220 laptop. ## Specs -* CPU - Intel Core i5-2520M @ 3.20GHz -* Memory - 8 GB DDR3 + +- CPU - Intel Core i5-2520M @ 3.20GHz +- Memory - 8 GB DDR3 ### Disks + Device | Partitions _(filesystem, usage)_ --- | --- Solid | `/dev/sda1` (EFI, NixOS Boot)
`/dev/sda2` (ZFS, NixOS Root) #### ZFS pool layout + ``` rpool/ ├── local @@ -28,5 +32,6 @@ rpool/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets. ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `eos.mesh.vimium.net`. diff --git a/hosts/helios/README.md b/hosts/helios/README.md index 50d7549..140eb2f 100644 --- a/hosts/helios/README.md +++ b/hosts/helios/README.md @@ -1,16 +1,19 @@ # Helios ## Overview + Dell OptiPlex 980 small form factor desktop. ## Specs -* CPU - Intel Core i7-860 @ 2.8GHz -* Chipset - Intel Q57 Express -* Memory - 8 GB DDR2 -* GPU - AMD FirePro 2460 -* NIC - Intel Gigabit 82578DM + +- CPU - Intel Core i7-860 @ 2.8GHz +- Chipset - Intel Q57 Express +- Memory - 8 GB DDR2 +- GPU - AMD FirePro 2460 +- NIC - Intel Gigabit 82578DM ### Disks + Device | Partitions _(filesystem, size, usage)_ --- | --- SanDisk Ultra II | `/dev/sda1` (ext2, 200 MiB, NixOS Boot)
`/dev/sda2` (ZFS, 480 GiB, NixOS Root) @@ -19,6 +22,7 @@ SanDisk Ultra II | `/dev/sda1` (ext2, 200 MiB, NixOS Boot)
`/dev/sda2` (ZFS > an MBR partition table. #### ZFS pool layout + ``` rpool/ ├── local @@ -34,5 +38,6 @@ rpool/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets. ### Networks + - DHCP on `192.168.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `helios.mesh.vimium.net`. diff --git a/hosts/hypnos/README.md b/hosts/hypnos/README.md index 01134a7..fa210d0 100644 --- a/hosts/hypnos/README.md +++ b/hosts/hypnos/README.md @@ -1,21 +1,25 @@ # Hypnos ## Overview + 15-inch MacBook Pro 11,3 (Mid 2014). ## Specs -* CPU - Intel Core i7-4870HQ @ 2.50GHz -* Memory - 16 GB DDR3 -* GPU - Intel Iris Pro 5200 -* GPU - NVIDIA GeForce GT 750M -* NIC - Broadcom BCM43xx 802.11ac + +- CPU - Intel Core i7-4870HQ @ 2.50GHz +- Memory - 16 GB DDR3 +- GPU - Intel Iris Pro 5200 +- GPU - NVIDIA GeForce GT 750M +- NIC - Broadcom BCM43xx 802.11ac ### Disks + Device | Partitions _(filesystem, size, usage)_ --- | --- Apple SSD SM0512F | `/dev/sda1` (EFI, 256 MiB, NixOS Boot)
`/dev/sda2` (ZFS, 500 GiB, NixOS Root) #### ZFS pool layout + ``` rpool/ ├── local @@ -31,5 +35,6 @@ rpool/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets. ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `hypnos.mesh.vimium.net`. diff --git a/hosts/library/README.md b/hosts/library/README.md index ce49635..315b46a 100644 --- a/hosts/library/README.md +++ b/hosts/library/README.md @@ -1,21 +1,25 @@ # Library ## Overview + Media and public file server. ## Specs -* CPU - AMD Ryzen 5 5600G @ 3.90GHz -* Chipset - AMD B550 -* Memory - 64 GB DDR4 -* Motherboard - ASRock B550M Pro4 -* Case - JMCD-12S4 + +- CPU - AMD Ryzen 5 5600G @ 3.90GHz +- Chipset - AMD B550 +- Memory - 64 GB DDR4 +- Motherboard - ASRock B550M Pro4 +- Case - JMCD-12S4 ### Disks + Device | Partitions _(filesystem, size, usage)_ --- | --- Samsung 970 Evo Plus | `/dev/nvme0n1p1` (EFI, 512 MiB, NixOS Boot)
`/dev/nvme0n1p2` (ZFS `rpool`, 200 GiB, NixOS Root) #### ZFS datasets + ``` rpool/ ├── local @@ -41,5 +45,6 @@ library/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind the `rpool` datasets. ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `library.mesh.vimium.net`. diff --git a/hosts/mail/README.md b/hosts/mail/README.md index 0d7ec2c..56f351c 100644 --- a/hosts/mail/README.md +++ b/hosts/mail/README.md @@ -1,17 +1,21 @@ # Mail server ## Overview + Mail server hosted in OVH. ## Specs -* CPU - ?? -* Memory - ?? + +- CPU - ?? +- Memory - ?? ### Disks + Device | Partitions _(filesystem, usage)_ --- | --- NVMe | `/dev/sda1` (ext4, NixOS Root) ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `mail.mesh.vimium.net`. diff --git a/hosts/odyssey/README.md b/hosts/odyssey/README.md index f7d4f23..c5d9b7d 100644 --- a/hosts/odyssey/README.md +++ b/hosts/odyssey/README.md @@ -1,22 +1,26 @@ # Odyssey ## Overview + Primary workstation. ## Specs -* CPU - AMD Ryzen 9 9950X3D @ 4.30GHz -* Chipset - AMD X870E -* Memory - 96 GB DDR5 -* Motherboard - ASUS ProArt X870E-Creator WiFi -* GPU - NVIDIA RTX 3090 -* Case - Thermaltake A500 + +- CPU - AMD Ryzen 9 9950X3D @ 4.30GHz +- Chipset - AMD X870E +- Memory - 96 GB DDR5 +- Motherboard - ASUS ProArt X870E-Creator WiFi +- GPU - NVIDIA RTX 3090 +- Case - Thermaltake A500 ### Disks + Device | Partitions _(filesystem, size, usage)_ --- | --- Samsung 980 Pro | `/dev/nvme0n1p1` (EFI, 512 MiB, NixOS Boot)
`/dev/nvme0n1p2` (ZFS, 2 TiB, NixOS Root) #### ZFS pool layout + ``` rpool/ ├── local @@ -32,5 +36,6 @@ rpool/ See [Graham Christensen's article](https://grahamc.com/blog/nixos-on-zfs/#datasets) for the motivation behind these datasets. ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `odyssey.mesh.vimium.net`. diff --git a/hosts/pi/README.md b/hosts/pi/README.md index 1d3b579..d398e09 100644 --- a/hosts/pi/README.md +++ b/hosts/pi/README.md @@ -1,19 +1,23 @@ # Pi ## Overview + Raspberry Pi 4 ## Specs -* SoC - Broadcom BCM2711 -* CPU - ARM Cortex-A72 @ 1.8 GHz -* Memory - 8 GB LPDDR4 + +- SoC - Broadcom BCM2711 +- CPU - ARM Cortex-A72 @ 1.8 GHz +- Memory - 8 GB LPDDR4 ### Disks + Device | Partitions _(filesystem, usage)_ --- | --- SD card | `/dev/mmcblk0` (ext4, NixOS Root) ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `pi.mesh.vimium.net`. diff --git a/hosts/skycam/README.md b/hosts/skycam/README.md index c1cfed8..23bed7b 100644 --- a/hosts/skycam/README.md +++ b/hosts/skycam/README.md @@ -1,26 +1,32 @@ # Skycam ## Overview + Raspberry Pi 4-based webcam ## Specs -* SoC - Broadcom BCM2711 -* CPU - ARM Cortex-A72 @ 1.8 GHz -* Memory - 8 GB LPDDR4 + +- SoC - Broadcom BCM2711 +- CPU - ARM Cortex-A72 @ 1.8 GHz +- Memory - 8 GB LPDDR4 ### Disks + Device | Partitions _(filesystem, usage)_ --- | --- SD card | `/dev/mmcblk0` (ext4, NixOS Root) ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `skycam.mesh.vimium.net`. ## Devices and connections + - Camera Module 3 with wide-angle lens ## Building + To generate a compressed SD card image for Skycam, run: `nix build '.#nixosConfigurations.skycam.config.system.build.sdImage'` diff --git a/hosts/vps1/README.md b/hosts/vps1/README.md index a87c2b7..e101038 100644 --- a/hosts/vps1/README.md +++ b/hosts/vps1/README.md @@ -1,17 +1,21 @@ # vps1 ## Overview + VPS hosted in OVH. ## Specs -* CPU - ?? -* Memory - ?? + +- CPU - ?? +- Memory - ?? ### Disks + Device | Partitions _(filesystem, usage)_ --- | --- NVMe | `/dev/sda1` (ext4, NixOS Root) ### Networks + - DHCP on `10.0.1.0/24` subnet. - Tailscale on `100.64.0.0/10` subnet. FQDN: `vps1.mesh.vimium.net`.