Skip to content

Commit

Permalink
boop: fix no network during initrd
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Mar 28, 2024
1 parent e1fa042 commit f9e05de
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions machines/boop/boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ in {
};
};

boot.initrd.availableKernelModules =
[ "xhci_pci" "ehci_pci" "uhci_hcd" "hpsa" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"uhci_hcd"
"hpsa"
"usbhid"
"usb_storage"
"sd_mod"
"tg3" # tg3 needed for initrd networking on this machine
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
Expand All @@ -33,8 +41,10 @@ in {
ssh = {
enable = true;
hostKeys = [
(pkgs.writeText "ssh_host_rsa_key" (builtins.readFile ./initrd/ssh_host_rsa_key))
(pkgs.writeText "ssh_host_ed25519_key" (builtins.readFile ./initrd/ssh_host_ed25519_key))
(pkgs.writeText "ssh_host_rsa_key"
(builtins.readFile ./initrd/ssh_host_rsa_key))
(pkgs.writeText "ssh_host_ed25519_key"
(builtins.readFile ./initrd/ssh_host_ed25519_key))
];
authorizedKeys = inputs.self.lib.sshKeyDatabase.users.astrid;
};
Expand Down

0 comments on commit f9e05de

Please sign in to comment.