blob: da4d3b16a4c79ed287a02a753d398725866d47c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# new cmd: nix-build '<nixpkgs/nixos>' -A config.system.build.kexec_tarball -I nixos-config=./configuration.nix -Q -j 4
{ lib, pkgs, config, ... }:
with lib;
{
imports = [
<nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix>
./kexec.nix
./install.nix
];
# nixos-install doesn't work with nixUnstable
nix.package = mkForce pkgs.nixStable;
boot.loader.grub.enable = false;
boot.kernelParams = [
"console=ttyS0,115200" # allows certain forms of remote access, if the hardware is setup right
"panic=30" "boot.panic_on_fail" # reboot the machine upon fatal boot issues
];
networking.hostName = "kexec";
hardware = {
enableRedistributableFirmware = mkForce false;
opengl.driSupport = mkForce false;
};
}
|