add pmbootstrap

This commit is contained in:
Daniel Langbein 2023-10-08 12:37:56 +02:00
parent c24654aa04
commit f46308791b
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

17
modules/pmbootstrap.nix Normal file
View File

@ -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
}