feat(nixos): add pydantic to host runtime environment and constrain dependency range
- Add pydantic to environment.systemPackages in nixos/configuration.nix - Add pydantic to homelab-gitops.service path in nixos/modules/homeserver.nix - Constrain pydantic dependency to >=2.0,<3.0 in pyproject.toml
This commit is contained in:
1 parent
68c149d9af
commit
66c5e4280a
4 files changed
+13
-4
No files matched your search
@@ -127,9 +127,10 @@
|
|||||||
# Secrets tooling (required for sops-nix secret decryption and manual re-encryption)
|
# Secrets tooling (required for sops-nix secret decryption and manual re-encryption)
|
||||||
sops
|
sops
|
||||||
age
|
age
|
||||||
# Python runtime (hard requirement for appctl and gitops_dispatcher.py)
|
# Python runtime (hard requirement for appctl, core_manifest, and gitops_dispatcher.py)
|
||||||
(python3.withPackages (ps: with ps; [
|
(python3.withPackages (ps: with ps; [
|
||||||
pyyaml
|
pyyaml
|
||||||
|
pydantic
|
||||||
]))
|
]))
|
||||||
# Modern shell utilities
|
# Modern shell utilities
|
||||||
eza # ls replacement
|
eza # ls replacement
|
||||||
|
|||||||
@@ -66,7 +66,15 @@
|
|||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
path = with pkgs; [ git docker docker-compose python3 coreutils bash openssh ];
|
path = with pkgs; [
|
||||||
|
git
|
||||||
|
docker
|
||||||
|
docker-compose
|
||||||
|
(python3.withPackages (ps: with ps; [ pyyaml pydantic ]))
|
||||||
|
coreutils
|
||||||
|
bash
|
||||||
|
openssh
|
||||||
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
GITOPS_SECRET_FILE = config.sops.secrets."gitops/webhook_secret".path;
|
GITOPS_SECRET_FILE = config.sops.secrets."gitops/webhook_secret".path;
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ description = "Homelab Core platform and orchestration"
|
|||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pyyaml>=6.0",
|
"pyyaml>=6.0",
|
||||||
"pydantic>=2.0",
|
"pydantic>=2.0,<3.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.pyright]
|
[tool.pyright]
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ dependencies = [
|
|||||||
|
|
||||||
[package.metadata]
|
[package.metadata]
|
||||||
requires-dist = [
|
requires-dist = [
|
||||||
{ name = "pydantic", specifier = ">=2.0" },
|
{ name = "pydantic", specifier = ">=2.0,<3.0" },
|
||||||
{ name = "pyyaml", specifier = ">=6.0" },
|
{ name = "pyyaml", specifier = ">=6.0" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user