mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-17 12:20:47 +03:00
23 lines
966 B
Nix
23 lines
966 B
Nix
{ withSystem, inputs, ... }:
|
|
|
|
{
|
|
flake.checks.x86_64-linux = withSystem "x86_64-linux" ({ pkgs, system, inputs', config, ... }:
|
|
let
|
|
testInputs = {
|
|
inherit pkgs;
|
|
inherit (inputs.disko.nixosModules) disko;
|
|
nixos-anywhere = config.packages.nixos-anywhere;
|
|
kexec-installer = "${inputs'.nixos-images.packages.kexec-installer-nixos-unstable-noninteractive}/nixos-kexec-installer-noninteractive-${system}.tar.gz";
|
|
};
|
|
testInputs2305 = testInputs // {
|
|
kexec-installer = "${inputs'.nixos-images.packages.kexec-installer-nixos-2305-noninteractive}/nixos-kexec-installer-noninteractive-${system}.tar.gz";
|
|
};
|
|
in
|
|
{
|
|
from-nixos = import ./from-nixos.nix testInputs;
|
|
from-nixos-2305 = import ./from-nixos.nix testInputs2305;
|
|
from-nixos-with-sudo = import ./from-nixos-with-sudo.nix testInputs;
|
|
from-nixos-with-sudo-2305 = import ./from-nixos-with-sudo.nix testInputs2305;
|
|
});
|
|
}
|