nixos/slop-cannon: Move to a VM on palace
CI / Check, build and cache nixfiles (push) Successful in 45m39s
Update docs / update (push) Successful in 1m0s

Give agents their own kernel, Nix daemon and disk for workloads that
need root. Put the VM on the `untrusted` VLAN with MAC spoof
checking on VF 5.

Export a dedicated partition from `cellar` and connect it on
`palace`. Give the VM its own SSH host key and age secrets for Paseo
and Gitea. Keep the agent home and Paseo identity on persistent
storage and provide `slop-pair` for pairing clients.

Retire the container, restore `sfh` to 8 cores and 32 GiB, and rekey
the shared password secret. Document the VM and its operating
procedures on the relevant box pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 22:02:14 +00:00
co-authored by Claude Opus 5.5
parent 5058dec3f1
commit a6491c7535
20 changed files with 588 additions and 353 deletions
+19 -2
View File
@@ -53,7 +53,7 @@ in
};
};
});
kernelModules = [ "dm-raid" "kvm-amd" ];
kernelModules = [ "dm-raid" "kvm-amd" "nvme-rdma" ];
kernelParams = [ "amd_iommu=on" ];
initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
@@ -85,6 +85,12 @@ in
};
};
# NVMe-oF disks connected here belong to guests (`palace` has no NVMe of its own; its
# drives are passed to `cellar`); never activate their volume groups
environment.etc."lvm/lvm.conf".text = ''
devices/global_filter = [ "r|^/dev/nvme|" "a|.*|" ]
'';
services = {
lvm = {
boot.thin.enable = true;
@@ -96,7 +102,7 @@ in
extraOptions = [ "-A /var/log/smartd/" "--interval=600" ];
};
udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="net", ENV{ID_NET_DRIVER}=="mlx5_core", ENV{ID_PATH}=="pci-0000:44:00.0", ATTR{device/sriov_numvfs}="5"
ACTION=="add", SUBSYSTEM=="net", ENV{ID_NET_DRIVER}=="mlx5_core", ENV{ID_PATH}=="pci-0000:44:00.0", ATTR{device/sriov_numvfs}="6"
'';
};
@@ -212,6 +218,14 @@ in
MACAddress=52:54:00:8a:8a:f4
Trust=yes
MACSpoofCheck=no
# slop-cannon (untrusted)
[SR-IOV]
VirtualFunction=5
VLANId=${toString vlans.untrusted}
LinkState=auto
MACAddress=52:54:00:71:22:ea
MACSpoofCheck=yes
'';
};
"60-lan-hi" = mkMerge [
@@ -247,6 +261,9 @@ in
server.enable = true;
deploy.node.hostname = "192.168.68.22";
# Host NQN for guest disks on `cellar`; nothing on `palace` itself boots from it
nvme.uuid = "a5b573fe-59e0-4760-802d-4b6d2df6dcf2";
};
};
};