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)
|
||||
sops
|
||||
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; [
|
||||
pyyaml
|
||||
pydantic
|
||||
]))
|
||||
# Modern shell utilities
|
||||
eza # ls replacement
|
||||
|
||||
@@ -66,7 +66,15 @@
|
||||
wants = [ "network-online.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 = {
|
||||
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"
|
||||
dependencies = [
|
||||
"pyyaml>=6.0",
|
||||
"pydantic>=2.0",
|
||||
"pydantic>=2.0,<3.0",
|
||||
]
|
||||
|
||||
[tool.pyright]
|
||||
|
||||
Reference in new issue
Block a user