From f9cadba3ebc30005fe463136a86e64fff7dd152a Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Wed, 8 Feb 2023 22:25:01 -0700 Subject: [PATCH] improve ephemeral os config --- machines/ephemeral/minimal.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/machines/ephemeral/minimal.nix b/machines/ephemeral/minimal.nix index 10452fa..1d54f46 100644 --- a/machines/ephemeral/minimal.nix +++ b/machines/ephemeral/minimal.nix @@ -1,6 +1,10 @@ -{ pkgs, ... }: +{ pkgs, modulesPath, ... }: { + imports = [ + (modulesPath + "/installer/cd-dvd/channel.nix") + ]; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "e1000" "e1000e" "virtio_pci" "r8169" ]; boot.kernelParams = [ "panic=30" "boot.panic_on_fail" # reboot the machine upon fatal boot issues @@ -9,10 +13,20 @@ ]; boot.kernel.sysctl."vm.overcommit_memory" = "1"; + boot.kernelPackages = pkgs.linuxPackages_latest; + environment.systemPackages = with pkgs; [ cryptsetup btrfs-progs + git git-lfs + wget + htop + dnsutils + pciutils + usbutils + lm_sensors ]; + environment.variables.GC_INITIAL_HEAP_SIZE = "1M"; networking.useDHCP = true; @@ -24,5 +38,5 @@ }; services.getty.autologinUser = "root"; - users.users.root.openssh.authorizedKeys.keys = (import ../common/ssh.nix).users; + users.users.root.openssh.authorizedKeys.keys = (import ../../common/ssh.nix).users; } \ No newline at end of file