40 lines
703 B
Nix
40 lines
703 B
Nix
{ lib
|
|
, python3
|
|
, python3Packages
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication {
|
|
pname = "create-host";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
pyproject = true;
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
typer
|
|
jinja2
|
|
rich
|
|
hvac # Python Vault/OpenBao client library
|
|
];
|
|
|
|
# Install templates to share directory
|
|
postInstall = ''
|
|
mkdir -p $out/share/create-host
|
|
cp -r templates $out/share/create-host/
|
|
'';
|
|
|
|
# No tests yet
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "NixOS host configuration generator for homelab infrastructure";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|