diff options
author | tilpner | 2018-04-19 22:38:13 +0200 |
---|---|---|
committer | tilpner | 2018-04-19 22:38:13 +0200 |
commit | c52f9cb05ba3fd6533543d691de778091a30e2e1 (patch) | |
tree | b3a01d2c338be776dbdb63cfe867a8b691c31765 /configuration.nix | |
download | nixos-kexec-c52f9cb05ba3fd6533543d691de778091a30e2e1.tar.gz nixos-kexec-c52f9cb05ba3fd6533543d691de778091a30e2e1.tar.xz nixos-kexec-c52f9cb05ba3fd6533543d691de778091a30e2e1.zip |
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..da4d3b1 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,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; + }; +} |