Skip to content

Instantly share code, notes, and snippets.

@colemickens
Created January 13, 2026 18:14
Show Gist options
  • Select an option

  • Save colemickens/587a2902d9bfee037774f380bd39de54 to your computer and use it in GitHub Desktop.

Select an option

Save colemickens/587a2902d9bfee037774f380bd39de54 to your computer and use it in GitHub Desktop.
{ inputs }:
let
inherit (inputs) nixpkgs;
system = "x86_64-linux";
authorizedSshPubKeys = [ (import ../../../data.nix).authorized_keys.ssh_ca_user_root ];
in
inputs.minnows.lib.minnowsSystem {
inherit system;
metadata = {
name = "sample-netboot-machine";
description = "A Minnows system used for internal experimentation and continuous integration testing via netboot";
flakeref = "minnows-sample-netboot-machine";
attributes = {
role = "debug";
};
tags = [
"sample"
"testing"
"netboot"
];
};
platforms = {
"demo-generic-x86_64" = {
definition = inputs.platform-generic-x86_64.minnowsPlatforms.default;
};
};
resources = {
devices.console = {
path = "/dev/console";
};
listeningPorts.ssh = {
family = null;
protocol = "tcp";
port = 22;
};
};
flows.boot-status = {
definition = import inputs.flow-boot-status { self = inputs.self; };
config = { };
grantedCapabilities = {
fullDeviceAccess = true;
fullFilesystemAccess = true;
runAsRoot = true;
allowSystemDBusAccess = true;
};
grantAll = true;
};
flows.debug-shell = {
definition = inputs.flow-debug-shell.minnowsFlows.default;
config = {
shell = "${nixpkgs.legacyPackages.${system}.bashInteractive}/bin/bash";
};
resources = {
devices.console = "console";
};
grantAll = true;
};
flows.sshd = {
definition = inputs.flow-sshd.minnowsFlows.default;
config = {
path = with inputs.nixpkgs.legacyPackages.${system}; [
gnugrep
usbutils
ripgrep
lshw
];
authorizedKeys = authorizedSshPubKeys;
};
resources = {
listeningPorts.port = "ssh";
};
grantedCapabilities = {
fullDeviceAccess = true;
fullFilesystemAccess = true;
};
grantAll = true;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment