Files
NixOsConfig/pkgs/create-keys/default.nix
T
Claude 7dd6853124 Normalize file modes to 644
All tracked files were committed as 755; only Nix reads them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZ16yf4acmaSiHq81vyQ6Z
2026-10-12 20:41:48 +00:00

25 lines
498 B
Nix

# 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;
};
}