2023-01-11 00:02:22 +03:00
|
|
|
{ withSystem, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
flake.checks.x86_64-linux = withSystem "x86_64-linux" ({ pkgs, system, inputs', config, ... }:
|
|
|
|
let
|
|
|
|
testInputs = {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit (inputs.disko.nixosModules) disko;
|
2023-02-01 21:49:46 +03:00
|
|
|
nixos-anywhere = config.packages.nixos-anywhere;
|
2023-05-07 23:05:10 +03:00
|
|
|
kexec-installer = "${inputs'.nixos-images.packages.kexec-installer-nixos-unstable-noninteractive}/nixos-kexec-installer-noninteractive-${system}.tar.gz";
|
2023-01-11 00:02:22 +03:00
|
|
|
};
|
2023-06-11 14:08:38 +03:00
|
|
|
testInputs2305 = testInputs // {
|
|
|
|
kexec-installer = "${inputs'.nixos-images.packages.kexec-installer-nixos-2305-noninteractive}/nixos-kexec-installer-noninteractive-${system}.tar.gz";
|
2023-05-15 14:52:41 +03:00
|
|
|
};
|
2023-01-11 00:02:22 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
from-nixos = import ./from-nixos.nix testInputs;
|
2023-06-11 14:08:38 +03:00
|
|
|
from-nixos-2305 = import ./from-nixos.nix testInputs2305;
|
2023-01-11 00:02:22 +03:00
|
|
|
from-nixos-with-sudo = import ./from-nixos-with-sudo.nix testInputs;
|
2023-06-11 14:08:38 +03:00
|
|
|
from-nixos-with-sudo-2305 = import ./from-nixos-with-sudo.nix testInputs2305;
|
2023-01-11 00:02:22 +03:00
|
|
|
});
|
|
|
|
}
|