fanboy.cx: init host #912

Merged
JakeHillion merged 1 commits from jj/rpuxosxponwl into main 2026-02-18 22:17:41 +00:00
7 changed files with 142 additions and 1 deletions

No files matched your search

@@ -22,6 +22,10 @@
# WireGuard VPN forwarding rules
iifname "wg0" oifname "enp2s0" accept comment "WireGuard to WAN"
iifname "enp2s0" oifname "wg0" ct state related,established accept comment "WAN to WireGuard established"
# Allow LAN to reach fanboy Nebula port
iifname "enp1s0f0" oifname "openclaw" ip daddr 10.116.242.2 udp dport 4242 counter accept comment "LAN to fanboy Nebula"
iifname "openclaw" oifname "enp1s0f0" ct state { established, related } counter accept comment "Established back from openclaw"
'';
extraNatRules = ''
# WireGuard NAT masquerading
@@ -63,6 +67,7 @@
allow 10.64.50.0/24
allow 10.239.19.0/24
allow 10.133.145.0/24
allow 10.116.242.0/24
'';
};
@@ -0,0 +1,35 @@
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
];
config = {
system.stateVersion = "25.11";
custom.defaults = true;
## Boot (single SSD, no mirrored boots)
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
## Impermanence
custom.impermanence.enable = true;
## Auto-updater with reboot
custom.auto_updater.allowReboot = true;
## Force Nebula port for firewall rules on openclaw VLAN
custom.nebula.forcePort = true;
## Disable services that require outbound Nebula connections
## (fanboy's Nebula cert blocks outbound to other Nebula hosts)
services.journald.upload.enable = lib.mkForce false;
custom.hostinfo.enable = lib.mkForce false;
};
}
@@ -0,0 +1,69 @@
{
disko.devices = {
disk = {
one = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
boot = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
swap = {
size = "32G";
content = {
type = "swap";
randomEncryption = true;
discardPolicy = "both";
};
};
disk0-crypt = {
size = "100%";
content = {
type = "luks";
name = "disk0-crypt";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
subvolumes = {
"/data" = {
mountpoint = "/data";
mountOptions = [ "compress=zstd" "ssd" ];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "ssd" ];
};
};
};
};
};
};
};
};
};
nodev = {
"/" = {
fsType = "tmpfs";
mountOptions = [
"mode=755"
"size=100%"
];
};
};
};
}
@@ -0,0 +1 @@
x86_64-linux
+1
View File
@@ -52,6 +52,7 @@ in
neb = {
cx = {
boron = "172.20.0.1";
fanboy = "172.20.0.26";
maverick = "172.20.0.25";
rooster = "172.20.0.16";
warlock = "172.20.0.15";
+7 -1
View File
@@ -30,6 +30,12 @@ in
type = lib.types.str;
default = "/data/nebula/host.key";
};
forcePort = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Force Nebula to listen on port 4242 (useful for firewall rules on non-lighthouse hosts)";
};
};
config = lib.mkIf cfg.enable {
@@ -82,7 +88,7 @@ in
listen = lib.mkMerge [
{ host = "[::]"; }
(lib.mkIf isLighthouse {
(lib.mkIf (isLighthouse || cfg.forcePort) {
port = 4242;
})
];
+24
View File
@@ -440,6 +440,30 @@
internetAccess = true;
trustedNetwork = false;
};
openclaw = {
description = "OpenClaw Network";
vlanId = 7;
subnet = "10.116.242.0/24";
interface = "enp1s0f0";
dhcpEnabled = true;
dhcpPool = {
start = "10.116.242.64";
end = "10.116.242.254";
};
dnsServers = [ "1.1.1.1" "8.8.8.8" ];
internetAccess = true;
trustedNetwork = false;
devices = {
"2" = {
hostname = "fanboy";
fqdn = "fanboy.cx.${config.ogygia.domain}";
hwAddress = "78:55:36:00:0d:ed";
dhcpReservation = true;
};
};
};
};
};
};