Files
romanl ca2da6e7dd Squashed commit of the following:
commit 7f8947ab49
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 02:06:33 2026 +0200

    Digitiser firmware loads now

commit edf8a018e5
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 01:53:18 2026 +0200

    Event driven bootmac script

commit 16372475fb
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 01:48:58 2026 +0200

    Remove unwanted Gnome pkgs

commit 23b91dec28
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 01:42:32 2026 +0200

    Add regulator_ignore_unused to kernel parameters

commit 5dafb93b47
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 01:42:21 2026 +0200

    Actually copy the digitised firmware in this time

commit 96459bce14
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 01:36:33 2026 +0200

    Revert changes to pkgs/firmware from 997d14bd27

commit c4e8cbd1dc
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 01:31:34 2026 +0200

    Add timeout logic for WLAN interface initialization in MAC address script

commit 997d14bd27
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 00:56:29 2026 +0200

    Refactor package management and enhance firmware installation process

commit 21732a60f8
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Sat May 23 00:15:38 2026 +0200

    Factor out a lot of options

commit 3cffe3ba1f
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Fri May 22 23:55:42 2026 +0200

    Adapt pmos bootmac logic

commit 10fa4877e2
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Fri May 22 23:32:05 2026 +0200

    Target wlp1s0 for changing the mac

commit 8f6aead2f8
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Fri May 22 23:26:19 2026 +0200

    Refactor MAC address extraction

commit 77590d5733
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Fri May 22 23:19:09 2026 +0200

    Enhance Bluetooth support in hardware configuration and improve MAC address application process

commit 2dded51279
Author: Roman Lubij <roman.lubij@gmail.com>
Date:   Fri May 22 22:20:19 2026 +0200

    Start structuring the config some
2026-05-23 02:08:24 +02:00

34 lines
841 B
Nix

{
config,
lib,
pkgs,
...
}: {
options.hardware.pipa.debugMode = lib.mkEnableOption "USB Ethernet and Serial Debugging via ttyGS0";
config = lib.mkIf config.hardware.pipa.debugMode {
boot = {
kernelModules = ["g_ether"];
kernelParams = ["console=ttyGS0"];
};
systemd.services."serial-getty@ttyGS0" = {
enable = true;
wantedBy = ["getty.target"];
};
systemd.services.NetworkManager-wait-online.enable = false;
networking.localCommands = ''
${pkgs.iproute2}/bin/ip addr add 192.168.7.2/24 dev usb0 || true
${pkgs.iproute2}/bin/ip link set dev usb0 up || true
'';
users.users.nixos = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDOwnOKjUpX6gFdSeNkDEETezAhPtHgVfFO0GO44YeD7 roman.lubij@gmail.com"
];
};
};
}