ca2da6e7dd
commit7f8947ab49Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 02:06:33 2026 +0200 Digitiser firmware loads now commitedf8a018e5Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 01:53:18 2026 +0200 Event driven bootmac script commit16372475fbAuthor: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 01:48:58 2026 +0200 Remove unwanted Gnome pkgs commit23b91dec28Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 01:42:32 2026 +0200 Add regulator_ignore_unused to kernel parameters commit5dafb93b47Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 01:42:21 2026 +0200 Actually copy the digitised firmware in this time commit96459bce14Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 01:36:33 2026 +0200 Revert changes to pkgs/firmware from997d14bd27commitc4e8cbd1dcAuthor: 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 commit997d14bd27Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 00:56:29 2026 +0200 Refactor package management and enhance firmware installation process commit21732a60f8Author: Roman Lubij <roman.lubij@gmail.com> Date: Sat May 23 00:15:38 2026 +0200 Factor out a lot of options commit3cffe3ba1fAuthor: Roman Lubij <roman.lubij@gmail.com> Date: Fri May 22 23:55:42 2026 +0200 Adapt pmos bootmac logic commit10fa4877e2Author: Roman Lubij <roman.lubij@gmail.com> Date: Fri May 22 23:32:05 2026 +0200 Target wlp1s0 for changing the mac commit8f6aead2f8Author: Roman Lubij <roman.lubij@gmail.com> Date: Fri May 22 23:26:19 2026 +0200 Refactor MAC address extraction commit77590d5733Author: 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 commit2dded51279Author: Roman Lubij <roman.lubij@gmail.com> Date: Fri May 22 22:20:19 2026 +0200 Start structuring the config some
34 lines
841 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
}
|