25 lines
498 B
Nix
Executable File
25 lines
498 B
Nix
Executable File
# Generates keys/<host>/: SSH host key (agenix identity) and Secure Boot keys.
|
|
{
|
|
lib,
|
|
writeShellApplication,
|
|
coreutils,
|
|
git,
|
|
openssh,
|
|
sbctl,
|
|
}:
|
|
writeShellApplication {
|
|
name = "create-keys";
|
|
runtimeInputs = [
|
|
coreutils
|
|
git
|
|
openssh
|
|
sbctl
|
|
];
|
|
text = builtins.readFile ./create-keys.sh;
|
|
meta = {
|
|
description = "Create the SSH host key and Secure Boot keys for a host (keys/<host>/)";
|
|
mainProgram = "create-keys";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|