ALPHA: wire is a tool to deploy nixos systems
wire.althaea.zone/
1# SPDX-License-Identifier: AGPL-3.0-or-later
2# Copyright 2024-2025 wire Contributors
3
4
5def collect_store_objects(machine: Machine) -> set[str]:
6 return set(machine.succeed("ls /nix/store").strip().split("\n"))
7
8
9def assert_store_not_poisoned(machine: Machine, poison: str, objects: set[str]):
10 paths = list(map(lambda n: f"/nix/store/{n}", objects))
11
12 machine.succeed("which rg")
13 machine.fail(f"rg '{poison}' {" ".join(paths)}")