mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
18 lines
582 B
Nix
18 lines
582 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}/nixos-kexec-installer-${system}.tar.gz";
|
|
};
|
|
in
|
|
{
|
|
from-nixos = import ./from-nixos.nix testInputs;
|
|
from-nixos-with-sudo = import ./from-nixos-with-sudo.nix testInputs;
|
|
});
|
|
}
|