From ccea8abb4a48227c2891e0ac34cf42c8ae16995c Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Tue, 13 Oct 2026 07:12:53 -0500 Subject: [PATCH] fix(nixos): correct python3.withPackages syntax in systemPackages and add toplevel evaluation to test script - Wrap python3.withPackages in outer parentheses with proper whitespace for argument application. - Enhance scripts/test to evaluate nixosConfigurations.server toplevel derivation during pre-merge testing. --- nixos/configuration.nix | 4 ++-- scripts/test | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f819bf5..46bf4a5 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -120,9 +120,9 @@ sops age # Python runtime (hard requirement for appctl and gitops_dispatcher.py) - python3.withPackages(ps: with ps; [ + (python3.withPackages (ps: with ps; [ pyyaml - ]) + ])) # Modern shell utilities eza # ls replacement ripgrep # rg — fast grep diff --git a/scripts/test b/scripts/test index a5f016d..e022dc1 100755 --- a/scripts/test +++ b/scripts/test @@ -20,5 +20,6 @@ fi echo "❄️ Verifying NixOS flake & sandbox checks..." nix flake check +nix eval .#nixosConfigurations.server.config.system.build.toplevel.drvPath --json >/dev/null echo "✨ All tests and architectural invariants passed successfully!"