Files
collinarnett d285b72438 machines: add test-machine configuration
Define test-machine using clan.machines pattern with minimal NixOS
configuration for local clan ai testing. Follows clan-core's structure
with separate nixosModule for the machine definition.
2026-01-17 14:01:05 -05:00

38 lines
955 B
Nix

{ self, lib, ... }:
{
# Define test-machine for local AI testing
# This machine can be queried by `clan ai` for testing purposes
clan.machines.test-machine = {
imports = [
self.nixosModules.test-machine
];
nixpkgs.hostPlatform = "x86_64-linux";
# Minimal boot configuration
fileSystems."/" = {
device = lib.mkDefault "/dev/vda";
fsType = "ext4";
};
boot.loader.grub.device = lib.mkDefault "/dev/vda";
};
# NixOS module for test-machine
flake.nixosModules.test-machine =
{ modulesPath, ... }:
{
imports = [
# Testing instrumentation for NixOS tests
(modulesPath + "/profiles/qemu-guest.nix")
];
networking.hostName = "test-machine";
system.stateVersion = "24.05";
# Minimize configuration size
documentation.enable = lib.mkDefault false;
nixpkgs.flake.setFlakeRegistry = false;
nixpkgs.flake.setNixPath = false;
};
}