From f46308791b18fdb96f1472ef3afe4f3a8ebbc87e Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 8 Oct 2023 12:37:56 +0200 Subject: [PATCH] add pmbootstrap --- modules/pmbootstrap.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/pmbootstrap.nix diff --git a/modules/pmbootstrap.nix b/modules/pmbootstrap.nix new file mode 100644 index 0000000..470233d --- /dev/null +++ b/modules/pmbootstrap.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + users.users.yoda = { + packages = with pkgs; [ + pmbootstrap + ]; + }; + + # 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 +}