2022-12-14 17:32:53 +01:00
|
|
|
{
|
|
|
|
description = "NixOS images";
|
|
|
|
|
2022-12-16 13:44:26 +01:00
|
|
|
inputs.nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
|
|
|
inputs.nixos-2211.url = "github:NixOS/nixpkgs/release-21.11";
|
|
|
|
|
|
|
|
nixConfig.extra-substituters = [
|
|
|
|
"https://cache.garnix.io"
|
|
|
|
];
|
|
|
|
nixConfig.extra-trusted-public-keys = [
|
|
|
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = { self, nixos-unstable, nixos-2211 }: {
|
|
|
|
packages.x86_64-linux = let
|
|
|
|
netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") {}).netboot.x86_64-linux;
|
2022-12-16 15:27:57 +01:00
|
|
|
kexec-installer = nixpkgs: (nixpkgs.legacyPackages.x86_64-linux.nixos [self.nixosModules.kexec-installer]).config.system.build.kexecTarball;
|
2022-12-16 13:44:26 +01:00
|
|
|
in {
|
2022-12-16 15:27:57 +01:00
|
|
|
netboot-nixos-unstable = netboot nixos-unstable;
|
|
|
|
netboot-nixos-nixos-2211 = netboot nixos-2211;
|
|
|
|
kexec-installer-nixos-unstable = kexec-installer nixos-unstable;
|
|
|
|
kexec-installer-nixos-2211 = kexec-installer nixos-2211;
|
2022-12-16 13:44:26 +01:00
|
|
|
};
|
|
|
|
nixosModules.kexec-installer = import ./nix/kexec-installer/module.nix;
|
|
|
|
checks.x86_64-linux = {
|
|
|
|
kexec-installer-unstable = nixos-unstable.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {};
|
2022-12-16 15:02:37 +01:00
|
|
|
# networkd fails to set ipv6 gateway in 2211
|
2022-12-16 13:44:26 +01:00
|
|
|
#kexec-installer-2211 = nixos-2211.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {};
|
|
|
|
};
|
2022-12-14 17:32:53 +01:00
|
|
|
};
|
|
|
|
}
|