2024-07-30 21:38:08 +00:00
|
|
|
{ pkgs, nixos, lix-module }:
|
2024-05-04 00:13:57 +00:00
|
|
|
let
|
2024-07-30 21:38:08 +00:00
|
|
|
pkgs' = import pkgs.path {
|
|
|
|
inherit (pkgs) system;
|
|
|
|
};
|
2024-05-04 00:13:57 +00:00
|
|
|
configs = {
|
|
|
|
it-builds = nixos ({ ... }: {
|
2024-06-06 04:15:44 +00:00
|
|
|
imports = [ lix-module ];
|
2024-05-04 00:13:57 +00:00
|
|
|
documentation.enable = false;
|
|
|
|
fileSystems."/".device = "ignore-root-device";
|
|
|
|
boot.loader.grub.enable = false;
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
});
|
|
|
|
|
2024-07-30 21:38:08 +00:00
|
|
|
# Intentionally provoke the wrong major version.
|
|
|
|
# Does assume that the module is one major ahead of the release; the main
|
|
|
|
# purpose here is a manual testing fixture.
|
|
|
|
wrongMajor = pkgs'.nixos ({ ... }: {
|
|
|
|
imports = [ (import ./module.nix { lix = null; }) ];
|
|
|
|
documentation.enable = false;
|
|
|
|
fileSystems."/".device = "ignore-root-device";
|
|
|
|
boot.loader.grub.enable = false;
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
});
|
2024-05-04 00:13:57 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit configs;
|
|
|
|
|
|
|
|
it-builds = configs.it-builds.config.system.build.toplevel;
|
2024-07-30 21:38:08 +00:00
|
|
|
wrongMajor = configs.wrongMajor.config.system.build.toplevel;
|
2024-05-04 00:13:57 +00:00
|
|
|
}
|