Minor improvements and normalization towards Quartiq workflow #6
5
README
5
README
|
@ -1,3 +1,8 @@
|
||||||
|
On build device:
|
||||||
|
* nix-build
|
||||||
|
* (for LAN builds) nix-build --arg mlabs true
|
||||||
|
|
||||||
|
On target device:
|
||||||
* Enter BIOS, disable secure boot, enable UEFI PXE network boot
|
* Enter BIOS, disable secure boot, enable UEFI PXE network boot
|
||||||
* sudo auto-install
|
* sudo auto-install
|
||||||
* sudo reboot
|
* sudo reboot
|
||||||
|
|||||||
|
|
36
default.nix
36
default.nix
|
@ -43,20 +43,26 @@ let
|
||||||
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
|
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
|
||||||
'';
|
'';
|
||||||
|
|
||||||
customModule = {
|
customModule = mlabs:
|
||||||
system.stateVersion = "24.05";
|
let storeUrl = "https://nixbld.m-labs.hk" + (if mlabs then "?priority=10" else "");
|
||||||
environment.systemPackages = [ autoInstall pkgs.git ];
|
in
|
||||||
documentation.info.enable = false; # https://github.com/NixOS/nixpkgs/issues/124215
|
{
|
||||||
documentation.man.enable = false;
|
system.stateVersion = "24.05";
|
||||||
nix.settings.trusted-public-keys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="];
|
environment.systemPackages = [ autoInstall pkgs.git ];
|
||||||
nix.settings.substituters = ["https://nixbld.m-labs.hk"];
|
documentation.info.enable = false; # https://github.com/NixOS/nixpkgs/issues/124215
|
||||||
};
|
documentation.man.enable = false;
|
||||||
sb10q marked this conversation as resolved
Outdated
sb10q
commented
The priority setting is there for a reason: most packages get downloaded from the LAN when we install here. The priority setting is there for a reason: most packages get downloaded from the LAN when we install here.
It's probably not what you want from Germany, so make it configurable (i.e. option in default.nix, which can be off by default, and which would be turned on when building the netboot image on nixbld).
|
|||||||
|
nix.settings.trusted-public-keys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="];
|
||||||
|
nix.settings.substituters = [ storeUrl ];
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
makeNetboot {
|
{ mlabs ? false }:
|
||||||
modules = [
|
let module = customModule mlabs;
|
||||||
<nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
|
in
|
||||||
customModule
|
makeNetboot {
|
||||||
];
|
modules = [
|
||||||
system = "x86_64-linux";
|
<nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
|
||||||
}
|
module
|
||||||
|
];
|
||||||
|
system = "x86_64-linux";
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
The issue with auto-reboot here is you need to monitor the installation and then select memtest86 after it has finished.
Either somehow set up the bootloader so it runs memtest86 on the first boot, or move memtest86 at the end (but user reboot is still necessary so it's not clear what has been added with auto-reboot, and also auto-reboot loses any messages printed by nixos-install), or revert this change.