feat: add nix server provision
This commit is contained in:
32
pkgs/helpers/default.nix
Normal file
32
pkgs/helpers/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user