mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 10:03:56 +01:00
Enable the existing remote-builder module on shoryu, shushou and youko, and authorize their SSH host keys on aquamarine. Kana and Ruby are VM guests with no need to build; leave their local store and build behavior unchanged. Assisted-by: DeepSeek Harness (deepseek-flash)
39 lines
907 B
Nix
39 lines
907 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
mylib,
|
|
myvars,
|
|
disko,
|
|
...
|
|
}:
|
|
let
|
|
# MoreFine - S500Plus
|
|
hostName = "shoryu"; # Define your hostname.
|
|
|
|
coreModule = mylib.genVmHostModule {
|
|
inherit pkgs hostName;
|
|
inherit (myvars) networking;
|
|
};
|
|
in
|
|
{
|
|
imports = (mylib.scanPaths ./.) ++ [
|
|
disko.nixosModules.default
|
|
../k8s/disko-config/host-disko-fs.nix
|
|
./hardware-configuration.nix
|
|
./preservation.nix
|
|
coreModule
|
|
];
|
|
|
|
# Use the shared Aquamarine builder for heavy derivations; local builds
|
|
# remain available as a fallback.
|
|
modules.remote-builders.enable = true;
|
|
|
|
modules.btrbk.enable = true;
|
|
modules.security.audit.enable = true;
|
|
|
|
# MoreFine S500Plus: Radeon iGPU. The ROCm build of btop shows the GPU panel;
|
|
# node_exporter's drm collector exposes its utilization/VRAM.
|
|
modules.btop.package = pkgs.btop-rocm;
|
|
services.prometheus.exporters.node.enabledCollectors = [ "drm" ];
|
|
}
|