{ lib, self, ... }: { clan.modules = { trusted-nix-caches = lib.modules.importApply ./default.nix { }; }; perSystem = { pkgs, ... }: { checks = lib.optionalAttrs (pkgs.stdenv.isLinux) { trusted-nix-caches = import ./tests/vm/default.nix { inherit pkgs; clan-core = self; nixosLib = import (self.inputs.nixpkgs + "/nixos/lib") { }; }; }; }; }