Files
nix-config/hosts/12kingdoms-shoukei/default.nix
T
ryan4yin | 二花 d6450d48a2 feat(remote-builders): build ai and shoukei on aquamarine (#467)
Aquamarine builds for ai and shoukei across the three platforms, with both
daemons logging in as root. They authenticate with their passphrase-free SSH
host keys, and ssh_known_hosts now carries each builder's address.

Assisted-by: DeepSeek Harness 0.2.0-rc.2 (deepseek-flash)
2026-10-17 00:49:22 +08:00

74 lines
2.5 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
myvars,
...
}:
#############################################################
#
# Shoukei - NixOS running on Macbook Pro 2022 M2 16G
#
#############################################################
let
hostName = "shoukei"; # Define your hostname.
in
{
imports = [
./hardware-configuration.nix
./game
# shoukei reuses ai's preservation layout; no host-specific overrides yet
../idols-ai/preservation.nix
];
# 16G on a laptop: heavy derivations go to aquamarine's 96G instead of
# swapping here.
modules.remote-builders.enable = true;
# disable sunshine for security
services.sunshine.enable = lib.mkForce false;
# Laptop joins untrusted networks and is never scraped (see youko's
# `offlineHosts`); don't expose :9100, and don't keep the smartctl exporter
# (:9633) running either -- nothing collects it and the laptop isn't a
# long-lived drive to watch.
services.prometheus.exporters.node.enable = lib.mkForce false;
services.prometheus.exporters.smartctl.enable = lib.mkForce false;
# resolvconf restarts nscd on every /etc/resolv.conf rewrite (see
# /etc/resolvconf.conf). Boot network churn exceeds the default start limit
# (5/10s) and latches nscd into `failed`, which also fails nss-lookup.target /
# nss-user-lookup.target; `try-restart` cannot revive it. nscd cannot be
# disabled (NixOS loads NSS modules through it, see nsswitch.nix), so don't
# rate-limit these external restarts and back off on the crash path instead.
systemd.services.nscd = {
startLimitIntervalSec = 0;
serviceConfig = {
RestartSec = "1s";
RestartSteps = 5;
RestartMaxDelaySec = "60s";
};
};
networking = {
inherit hostName;
inherit (myvars.networking) nameservers;
};
modules.networking.mihomo.resolvedIntegration = true;
fileSystems."/btr_pool" = {
device = "/dev/disk/by-uuid/c2e8b249-240e-4eef-bf4e-81e7dbbf4887";
fsType = "btrfs";
options = [ "subvolid=5" ];
};
modules.btrbk.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "25.11"; # Did you read the comment?
}