nix: add runner images outputs
This commit is contained in:
parent
2e5fb0880f
commit
7719b0b763
5 changed files with 232 additions and 1 deletions
29
nix/nixos/ec-runner.nix
Normal file
29
nix/nixos/ec-runner.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../modules/ec-node.nix
|
||||
../modules/ec-runner.nix
|
||||
];
|
||||
|
||||
services.every-channel.runner.enable = true;
|
||||
|
||||
# This is a role image; avoid baking per-host secrets/keys. SSH host keys will be
|
||||
# generated at first boot by NixOS defaults.
|
||||
networking.hostName = lib.mkDefault "ec-runner";
|
||||
|
||||
time.timeZone = lib.mkDefault "UTC";
|
||||
|
||||
# Basic hygiene for unattended boxes.
|
||||
services.openssh.settings.PasswordAuthentication = false;
|
||||
services.openssh.settings.KbdInteractiveAuthentication = false;
|
||||
|
||||
# Enable serial console logs where possible (helps in headless bring-up).
|
||||
boot.kernelParams = [
|
||||
"console=tty0"
|
||||
];
|
||||
|
||||
# Required by NixOS.
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue