Compare commits
17 Commits
Author | SHA1 | Date |
---|---|---|
Phillip Klein | 9921e719ed | |
Phillip Klein | be9ab28418 | |
Phillip Klein | 10220fb515 | |
Phillip Klein | c13047636f | |
Phillip Klein | 470bf8e5d8 | |
Phillip Klein | 60f681a33e | |
Phillip Klein | 024a108c37 | |
Phillip Klein | 3ff34efa1f | |
Phillip Klein | af0db5ce6c | |
Phillip Klein | e0093e39c1 | |
Robert Jördens | aa2acd2ea0 | |
Phillip Klein | 4a11e55c13 | |
Phillip Klein | 27ad64c3b4 | |
Phillip Klein | 889e799eea | |
Robert Jördens | 09acb9e0b3 | |
Robert Jördens | 6643d4b417 | |
Robert Jördens | 6d4bfd975e |
12
README
12
README
|
@ -1,10 +1,16 @@
|
|||
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
|
||||
* sudo auto-install
|
||||
* sudo reboot
|
||||
* Run memtest86
|
||||
* Copy device database to ~/artiq
|
||||
* Set timezone and keyboard layout
|
||||
* Set timezone and kb layout
|
||||
* Comment out openssh.authorizedKeys.keys
|
||||
* sudo nixos-rebuild boot
|
||||
* sudo nix-collect-garbage -d
|
||||
* history clear
|
||||
|
||||
On build device:
|
||||
* cat sealoff.sh | ssh rabi@artiq "sudo sh"
|
||||
|
|
18
default.nix
18
default.nix
|
@ -33,7 +33,7 @@ let
|
|||
parted /dev/nvme0n1 -- mkpart primary 512MiB 100%
|
||||
parted /dev/nvme0n1 -- mkpart ESP fat32 1MiB 512MiB
|
||||
parted /dev/nvme0n1 -- set 2 esp on
|
||||
mkfs.ext4 -L nixos /dev/nvme0n1p1
|
||||
mkfs.btrfs -f -L nixos /dev/nvme0n1p1
|
||||
mkfs.fat -F 32 -n boot /dev/nvme0n1p2
|
||||
mount /dev/disk/by-label/nixos /mnt
|
||||
mkdir -p /mnt/boot
|
||||
|
@ -43,20 +43,26 @@ let
|
|||
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
|
||||
'';
|
||||
|
||||
customModule = prioNixbld: {
|
||||
customModule = mlabs:
|
||||
let storeUrl = "https://nixbld.m-labs.hk" + (if mlabs then "?priority=10" else "");
|
||||
in
|
||||
{
|
||||
system.stateVersion = "24.05";
|
||||
environment.systemPackages = [ autoInstall pkgs.git ];
|
||||
documentation.info.enable = false; # https://github.com/NixOS/nixpkgs/issues/124215
|
||||
documentation.man.enable = false;
|
||||
nix.settings.trusted-public-keys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="];
|
||||
nix.settings.substituters = [("https://nixbld.m-labs.hk" + (if prioNixbld then "?priority=10" else ""))];
|
||||
system.stateVersion = pkgs.lib.trivial.release;
|
||||
nix.settings.substituters = [ storeUrl ];
|
||||
};
|
||||
|
||||
in
|
||||
{ prioNixbld ? false }: makeNetboot {
|
||||
{ mlabs ? false }:
|
||||
let module = customModule mlabs;
|
||||
in
|
||||
makeNetboot {
|
||||
modules = [
|
||||
<nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
|
||||
(customModule prioNixbld)
|
||||
module
|
||||
];
|
||||
system = "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -71,8 +71,6 @@
|
|||
libreoffice-fresh
|
||||
vscodium
|
||||
];
|
||||
environment.sessionVariables = artiq.qtPaths;
|
||||
|
||||
programs.wireshark.enable = true;
|
||||
programs.wireshark.package = pkgs.wireshark;
|
||||
|
||||
|
@ -108,10 +106,10 @@
|
|||
extraGroups = ["networkmanager" "wheel" "plugdev" "dialout" "wireshark"];
|
||||
initialPassword = "rabi";
|
||||
openssh.authorizedKeys.keys = [
|
||||
# m-labs sb
|
||||
"ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBF/YybP+fQ0J+bNqM5Vgx5vDmVqVWsgUdF1moUxghv7d73GZAFaM6IFBdrXTAa33AwnWwDPMrTgP1V6SXBkb3ciJo/lD1urJGbydbSI5Ksq9d59wvOeANvyWYrQw6+eqTQ=="
|
||||
# m-labs therobs12
|
||||
"ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBK1tUg7TtceARRnGI80Ai5kNFolFfZ++LH9v1UoRCiJdxeQWPdNYO0Gj7+ejJvgZXwvN4yHGgcZHraEml4Mj/dKrEMFygfuYLDRmXtPFwX6TNMrWlxMhPzuNY+yCaxlqYg=="
|
||||
# m-labs
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyPk5WyFoWSvF4ozehxcVBoZ+UHgrI7VW/OoQfFFwIQe0qvetUZBMZwR2FwkLPAMZV8zz1v4EfncudEkVghy4P+/YVLlDjqDq9zwZnh8Nd/ifu84wmcNWHT2UcqnhjniCdshL8a44memzABnxfLLv+sXhP2x32cJAamo5y6fukr2qLp2jbXzR+3sv3klE0ruUXis/BR1lLqNJEYP8jB6fLn2sLKinnZPfn6DwVOk10mGeQsdME/eGl3phpjhODH9JW5V2V5nJBbC0rBnq+78dyArKVqjPSmIcSy72DEIpTctnMEN1W34BGrnsDd5Xd/DKxKxHKTMCHtZRwLC2X0NWN"
|
||||
# m-labs
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCMALVC8RDTHec+PC8y1s3tcpUAODgq6DEzQdHDf/cyvDMfmCaPiMxfIdmkns5lMa03hymIfSmLUF0jFFDc7biRp7uf9AAXNsrTmplHii0l0McuOOZGlSdZM4eL817P7UwJqFMxJyFXDjkubhQiX6kp25Kfuj/zLnupRCaiDvE7ho/xay6Jrv0XLz935TPDwkc7W1asLIvsZLheB+sRz9SMOb9gtrvk5WXZl5JTOFOLu+JaRwQLHL/xdcHJTOod7tqHYfpoC5JHrEwKzbhTOwxZBQBfTQjQktKENQtBxXHTe71rUEWfEZQGg60/BC4BrRmh4qJjlJu3v4VIhC7SSHn1"
|
||||
# quartiq rj
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC27krR8G8Pb59YuYm7+X2mmNnVdk/t9myYgO8LH0zfb2MeeXX5+90nW9kMjKflJss/oLl8dkD85jbJ0fRbRkfJd20pGCqCUuYAbYKkowigFVEkbrbWSLkmf+clRjzJOuBuUA0uq0XKS17uMC3qhu+dDdBOAIKb3L83NfVE8p8Pjb4BPktQrdxefM43/x4jTMuc7tgxVmTOEge3+rmVPK2GnLkUBgBn8b6S+9ElPd63HXI5J5f61v21l5N9V0mhTu1pv6PiDRdFIlFDK9dLVZcZ2qlzpKmCnFrOoreBEgre44SpfFe5/MMItxvWiVsj/rij/rHZZiol1k7JiQCnEHeCCbjjvcBBka5HxZgcb3vBZVceTOawrmjbdbA2dq35sUptz/bEgdZ1UVCmVpWsdROAlEDBmSSbcVwxzcvhoKnkpbuP4Q0V3tVKSLW053ADFNB4frtwY5nAZfsVErFLLphjwb8nlyJoDRNapQrn5syEiW0ligX2AAskZTYIl2A5AYyWPrmX6HJOPqZGatMU3qQiRMxs+hFqhyyCmBgl0kcsgW09MBKtJWk1Fbii98MHqgRUN9R7AUiYy5p78Pnv9DC8DT8Ubl9zoP0g5d40P9NGK2LAhMxLXvtckJ4ERqbSEcNZJw+q4jBrOHnMTz+NLdAUiEtru+6T2OdhaHv+eiNlFQ=="
|
||||
# quartiq rj
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
nixos-rebuild boot
|
||||
nix-collect-garbage -d
|
Loading…
Reference in New Issue