28 lines
984 B
Nix
28 lines
984 B
Nix
{ pkgs, inputs, ... }:
|
|
{
|
|
imports = [
|
|
../../common/encrypted-btrfs-layout.nix
|
|
../../common/global
|
|
../../common/compute-node.nix
|
|
# ../../common/ethereum.nix
|
|
../../common/nfs-services-server.nix # NFS server for /data/services
|
|
# To move NFS server role to another host:
|
|
# 1. Follow procedure in docs/NFS_FAILOVER.md
|
|
# 2. Replace above line with: ../../common/nfs-services-standby.nix
|
|
# 3. Add nfsServicesStandby.replicationKeys with the new server's public key
|
|
./hardware.nix
|
|
];
|
|
|
|
diskLayout = {
|
|
mainDiskDevice = "/dev/disk/by-id/ata-KINGSTON_SKC600MS1024G_50026B7785AE0A92";
|
|
#keyDiskDevice = "/dev/disk/by-id/usb-Intenso_Micro_Line_22080777660702-0:0";
|
|
keyDiskDevice = "/dev/sdb";
|
|
};
|
|
|
|
networking.hostName = "zippy";
|
|
services.tailscaleAutoconnect.authkey = "tskey-auth-ktKyQ59f2p11CNTRL-ut8E71dLWPXsVtb92hevNX9RTjmk4owBf";
|
|
|
|
# NFS server configuration: replicate to c1 as standby
|
|
nfsServicesServer.standbys = [ "c1" ];
|
|
}
|