From 304db5a4e63095996ba5eca7fbe6fa315abbead5 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 2 Aug 2024 23:36:23 -0500 Subject: [PATCH] trying to get the pi image working. --- hosts/remotepi-karp/default.nix | 7 +++++++ packages/rpi3-sd-image.nix | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/hosts/remotepi-karp/default.nix b/hosts/remotepi-karp/default.nix index a98d66d..7571f7e 100644 --- a/hosts/remotepi-karp/default.nix +++ b/hosts/remotepi-karp/default.nix @@ -89,6 +89,13 @@ inputs.nixpkgs.lib.nixosSystem { # Or disable the firewall altogether. # networking.firewall.enable = false; + boot.supportedFilesystems.zfs = lib.mkForce false; + boot.kernelParams = [ + "console=ttyS1,115200n8" + ]; + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/packages/rpi3-sd-image.nix b/packages/rpi3-sd-image.nix index b388548..d2cd7e1 100644 --- a/packages/rpi3-sd-image.nix +++ b/packages/rpi3-sd-image.nix @@ -24,7 +24,6 @@ ... }: { imports = ["${modulesPath}/installer/sd-card/sd-image-aarch64.nix"]; - boot.supportedFilesystems.zfs = lib.mkForce false; hardware.enableRedistributableFirmware = true; host = { user = "gabe"; @@ -90,6 +89,13 @@ # Or disable the firewall altogether. # networking.firewall.enable = false; + boot.supportedFilesystems.zfs = lib.mkForce false; + boot.kernelParams = [ + "console=ttyS1,115200n8" + ]; + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave