{ self, inputs, ... }: let restic-module = import ../restic { inherit (inputs) nixpkgs; }; in { perSystem = { pkgs, ... }: let nixosTestArgs = { inherit pkgs; inherit self; }; in { checks = { restic = import ./tests { # inherit (self) clanLib; inherit restic-module pkgs self; } nixosTestArgs; }; }; clan.inventory.modules.restic = restic-module; }