{ inputs, self, ... }: let module = ./default.nix; in { clan.modules = { phonebox-global = module; }; perSystem = { pkgs, ... }: { clan.nixosTests.service-phonebox-global = { imports = [ ./tests/vm/default.nix ]; _module.args = { inherit self inputs; }; clan.modules."@clan/phonebox-global" = module; }; # Unit tests for the directory sync logic (record verification, # address derivation, collision handling, file output). checks.phonebox-global-sync = pkgs.runCommand "phonebox-global-sync-test" { nativeBuildInputs = [ (pkgs.python3.withPackages (ps: [ ps.cryptography ])) pkgs.yggdrasil ]; PHONEBOX_SYNC = ./phonebox-sync.py; } '' python3 ${./tests/sync/test_sync.py} -v touch $out ''; }; }