33 lines
542 B
Nix
33 lines
542 B
Nix
{
|
|
lib,
|
|
writeShellApplication,
|
|
python3,
|
|
openbao,
|
|
openssh,
|
|
gitMinimal,
|
|
nix,
|
|
}:
|
|
writeShellApplication {
|
|
name = "nodeiwest";
|
|
|
|
runtimeInputs = [
|
|
python3
|
|
openbao
|
|
openssh
|
|
gitMinimal
|
|
nix
|
|
];
|
|
|
|
text = ''
|
|
export NODEIWEST_HELPER_TEMPLATES=${./templates}
|
|
exec ${python3}/bin/python ${./cli.py} "$@"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Safe VPS provisioning helper for the NodeiWest NixOS flake";
|
|
license = licenses.mit;
|
|
mainProgram = "nodeiwest";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|