52a8e47ac1
This is a fetch-through mirror of cache.nixos.org, hosted by NumTide. The current machine is a SX65 Hetzner dedicated server with 4x22TB SATA disks, and 2x1TB NVMe disks. The goals of this machine: - Exercise tvix-store and nar-bridge code - Collect usage metrics (see https://nixos.tvix.store/grafana) - Identify bottlenecks - Replace cache.nixos.org? Be however aware that there's zero availability guarantees. Since Tvix doesn't support garbage collection yet, we either will delete data or order a bigger box. Change-Id: Id24baa18cae1629a06caaa059c0c75d4a01659d5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12811 Tested-by: BuildkiteCI Reviewed-by: Jonas Chevalier <zimbatm@zimbatm.com> Reviewed-by: flokli <flokli@flokli.de>
62 lines
1.7 KiB
Nix
62 lines
1.7 KiB
Nix
# Disk /dev/nvme0n1: 1024 GB (=> 953 GiB)
|
|
# Disk /dev/nvme1n1: 1024 GB (=> 953 GiB)
|
|
# Disk /dev/sda: 22 TB (=> 20 TiB)
|
|
# Disk /dev/sdb: 22 TB (=> 20 TiB)
|
|
# Disk /dev/sdc: 22 TB (=> 20 TiB)
|
|
# Disk /dev/sdd: 22 TB (=> 20 TiB)
|
|
#
|
|
# # Installation
|
|
# 1. Comment out the fileSystems
|
|
# 2. Bootstrap the machine with `clan machines tvix-cache-install`
|
|
# 3. Do the btrfs partitioning by hand (because it's not supported by Disko)
|
|
# a. `mkfs.btrfs -m raid1 -d single /dev/sd{a,b,c,d} --label tank -f`
|
|
# b. `mkdir /tank && mount /dev/disk/by-label/tank /tank`
|
|
# 4. Uncomment the fileSystems section below
|
|
# 5. Re-deploy
|
|
#
|
|
# TODO: make use of /dev/nvme1n1
|
|
{
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.loader.systemd-boot.configurationLimit = 10;
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.timeout = 3;
|
|
boot.supportedFilesystems = [ "btrfs" ];
|
|
|
|
# TODO: comment me during install
|
|
fileSystems."/tank" = {
|
|
fsType = "btrfs";
|
|
device = "/dev/disk/by-label/tank";
|
|
};
|
|
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = "/dev/nvme0n1";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "1G";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "btrfs";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|