mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
fix pmbootstrap
This commit is contained in:
parent
72c1d06c14
commit
30537331ec
@ -1,16 +1,15 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
users.users.yoda = {
|
imports = [
|
||||||
packages = with pkgs; [
|
# Provides fastboot and udev rules
|
||||||
pmbootstrap
|
./android.nix
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
# For netboot, port 9999 has to be opened.
|
environment.systemPackages = with pkgs; [
|
||||||
#networking.firewall.allowedTCPPorts = [ 9999 ];
|
unstable.pmbootstrap
|
||||||
# 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)
|
# Required to serve the postmarketOS image via netboot.
|
||||||
# #=> target prot opt source destination
|
# https://wiki.postmarketos.org/wiki/Netboot#Usage
|
||||||
# #=> nixos-fw-accept 6 -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:9999
|
networking.firewall.allowedTCPPorts = [ 9999 ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user