From 0214b0a743ae7fe3e06f1967c8d667118dffe3a2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 9 Apr 2022 12:34:30 -0700 Subject: tahoe: enable network with early boot So we can unlock the disks remotely. --- hosts/tahoe/boot.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hosts/tahoe/boot.nix (limited to 'hosts/tahoe/boot.nix') diff --git a/hosts/tahoe/boot.nix b/hosts/tahoe/boot.nix new file mode 100644 index 0000000..f013f34 --- /dev/null +++ b/hosts/tahoe/boot.nix @@ -0,0 +1,17 @@ +{ ... }: + +{ + boot = { + # get an IP address on boot, so we can unlock the root disk remotely + kernelParams = [ "ip=dhcp" ]; + initrd = { + # driver for the NIC, required in order to get an IP address + kernelModules = [ "r8169" ]; + }; + }; + + my.system.boot = { + tmp = { clean = true; }; + initrd = { network.enable = true; }; + }; +} -- cgit 1.4.1