Files
nix-config/hosts/12kingdoms-shoryu/default.nix
T

42 lines
1.1 KiB
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
];
modules.btrbk.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" ];
boot.kernelParams = [
# Use transparent huge pages on demand (madvise) instead of a fixed 1G hugetlb
# pool. The static pool cannot be overcommitted or shared with the host /
# other VMs, which stranded memory and blocked scheduling; the VMs now use
# ordinary memory (see the instancetypes in k8s-gitops).
"transparent_hugepage=madvise"
];
}