Skip to content

Commit

Permalink
boop: more initrd configs :3
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Mar 28, 2024
1 parent f9e05de commit d34e27c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 12 additions & 2 deletions machines/boop/boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ in {
"usbhid"
"usb_storage"
"sd_mod"
"tg3" # tg3 needed for initrd networking on this machine
"tg3" # needed for initrd networking on this machine
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
Expand All @@ -34,12 +34,22 @@ in {
# because we want to be able to decrypt host keys over SSH
boot.initrd.network = {
enable = true;
udhcpc.enable = true;
udhcpc = {
enable = true;
extraArgs = [
"-i"
constants.mgmt_if
"-x"
"hostname:boop"
"-b" # background if lease not obtained
];
};
postCommands = ''
ip addr
'';
ssh = {
enable = true;
port = 2222; # because we are using a different host key
hostKeys = [
(pkgs.writeText "ssh_host_rsa_key"
(builtins.readFile ./initrd/ssh_host_rsa_key))
Expand Down
3 changes: 0 additions & 3 deletions machines/boop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ with lib; {
recommendedOptimisation = true;
recommendedGzipSettings = true;
};

# tmp for debug
services.getty.autologinUser = "root";

virtualisation.vmVariant = {
# Autologin as root because we testin here
Expand Down

0 comments on commit d34e27c

Please sign in to comment.