From 30537331ec904c550edfbafdf11bbe9c2c293476 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 21 Nov 2024 21:21:53 +0100 Subject: [PATCH] fix pmbootstrap --- modules/pmbootstrap.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/modules/pmbootstrap.nix b/modules/pmbootstrap.nix index 0b07ceb..57347dd 100644 --- a/modules/pmbootstrap.nix +++ b/modules/pmbootstrap.nix @@ -1,16 +1,15 @@ { config, pkgs, ... }: { - users.users.yoda = { - packages = with pkgs; [ - pmbootstrap - ]; - }; + imports = [ + # Provides fastboot and udev rules + ./android.nix + ]; - # For netboot, port 9999 has to be opened. - #networking.firewall.allowedTCPPorts = [ 9999 ]; - # Sadly, the tool does not detect the phone. Not sure why. I double checked that port 9999 is open: - # sudo iptables -nL - # #=> Chain nixos-fw (1 references) - # #=> target prot opt source destination - # #=> nixos-fw-accept 6 -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:9999 + environment.systemPackages = with pkgs; [ + unstable.pmbootstrap + ]; + + # Required to serve the postmarketOS image via netboot. + # https://wiki.postmarketos.org/wiki/Netboot#Usage + networking.firewall.allowedTCPPorts = [ 9999 ]; }