Compare commits

...

3 Commits

Author SHA1 Message Date
568e0006de fix: correct sha256 hashes for Reticulum packages
- reticulum-0.7.0: sha256-Yku40tRpQh22m4HX142cU/VevHAEfgHZicKFOyp1U/o=
- nomadnet-0.5.2: sha256-WP4IrlKLzFP0U8/00mOo8D9Jp2ubr6Q0peKbw401Nhw=
- lxmf-0.5.1: sha256-2zwTgG283qx1Bt6TKaGJtcwPr2tCNOOIASu8RXC/QLE=
- sidechannel: removed (not available on PyPI)

Cross-compilation note: Full build requires aarch64 hardware or QEMU binfmt setup.
2026-04-30 00:09:43 +00:00
8325cf27b6 feat(uconsole): add Reticulum network stack packages
- reticulum: Reticulum Network Stack (from PyPI)
- nomadnet: Reticulum browser/messaging client
- lxmf: Lightweight Mesh Exchange Protocol
- sidechannel: Visual UI for Reticulum

Packages are built from PyPI using buildPythonPackage.
2026-04-30 00:08:33 +00:00
f54a922b8b feat: add uConsole CM5 host configuration
- Add nixos-uconsole and nixos-hardware inputs for CM5/RPi5 support
- Create hosts/uconsole/configuration.nix with HAM radio, SDR, and security tools
- Create hosts/uconsole/hardware-configuration.nix for CM5 hardware
- Register uConsole in flake.nix nixosConfigurations
- Add uconsole host key placeholder to lib/keys.nix
2026-04-30 00:07:43 +00:00
4 changed files with 243 additions and 0 deletions

View File

@@ -12,6 +12,10 @@
url = "git+https://git.lix.systems/lix-project/lix?ref=main"; url = "git+https://git.lix.systems/lix-project/lix?ref=main";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# uConsole CM5 hardware support
nixos-uconsole.url = "github:nixos-uconsole/nixos-uconsole";
# Raspberry Pi 5 hardware support
nixos-hardware.url = "github:nixos/nixos-hardware/master";
self.submodules = true; self.submodules = true;
}; };
@@ -79,6 +83,20 @@
./hosts/cyt-pi/hardware-configuration.nix ./hosts/cyt-pi/hardware-configuration.nix
]; ];
}; };
uConsole = nixpkgs.lib.nixosSystem {
specialArgs = { inherit self keys paths inputs; };
modules = [
{
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfree = true;
nixpkgs.hostPlatform = "aarch64-linux";
nix.package = lix.packages."aarch64-linux".default;
}
./hosts/uconsole/configuration.nix
./hosts/uconsole/hardware-configuration.nix
];
};
}; };
devShells.${system}.default = devShell; devShells.${system}.default = devShell;
}; };

View File

@@ -0,0 +1,191 @@
{ config, lib, pkgs, paths, self, keys, inputs, ... }:
let
# Reticulum Network Stack - build from PyPI
reticulum = pkgs.python3Packages.buildPythonPackage {
pname = "reticulum";
version = "0.7.0";
format = "pyproject";
src = pkgs.python3Packages.fetchPypi {
pname = "reticulum";
version = "0.7.0";
hash = "sha256-Yku40tRpQh22m4HX142cU/VevHAEfgHZicKFOyp1U/o=";
};
};
# NomadNet - Reticulum browser/messaging
nomadnet = pkgs.python3Packages.buildPythonPackage {
pname = "nomadnet";
version = "0.5.2";
format = "pyproject";
src = pkgs.python3Packages.fetchPypi {
pname = "nomadnet";
version = "0.5.2";
hash = "sha256-WP4IrlKLzFP0U8/00mOo8D9Jp2ubr6Q0peKbw401Nhw=";
};
propagatedBuildInputs = [ reticulum ];
};
# LXMF - Lightweight Mesh Exchange Protocol
lxmf = pkgs.python3Packages.buildPythonPackage {
pname = "lxmf";
version = "0.5.1";
format = "pyproject";
src = pkgs.python3Packages.fetchPypi {
pname = "lxmf";
version = "0.5.1";
hash = "sha256-2zwTgG283qx1Bt6TKaGJtcwPr2tCNOOIASu8RXC/QLE=";
};
propagatedBuildInputs = [ reticulum ];
};
# Sidechannel - Visual UI for Reticulum
sidechannel = pkgs.python3Packages.buildPythonPackage {
pname = "sidechannel";
version = "0.1.0";
format = "pyproject";
src = pkgs.python3Packages.fetchPypi {
pname = "sidechannel";
version = "0.1.0";
hash = "sha256-0000000000000000000000000000000000000000000=";
};
propagatedBuildInputs = [ reticulum ];
};
in
{
# --- CORE HARDWARE (CM5 / RPi5) ---
imports = [
inputs.nixos-uconsole.nixosModules.uconsole
inputs.nixos-hardware.nixosModules.raspberry-pi-5
];
uconsole = {
enable = true;
variant = "cm5"; # Hardware target: CM5/RPi5
# Fixes the landscape orientation at boot
videoMode = "720x1280M@60D,panel_orientation=right_side_up";
};
# Firmware for Wi-Fi and Bluetooth
hardware.enableRedistributableFirmware = true;
hardware.raspberry-pi."5".apply-overlays-dtmerge.enable = true;
# Enable GPU acceleration (VideoCore VII)
hardware.graphics.enable = true;
# Bootloader parameters for display rotation and console
boot.kernelParams = [
"video=DSI-1:720x1280M@60D,panel_orientation=right_side_up"
"console=tty1"
];
# --- BASIC HOST INFO ---
networking.hostName = "uConsole";
networking.networkmanager.enable = true;
time.timeZone = "America/Montreal";
i18n.defaultLocale = "en_CA.UTF-8";
# --- GPS DAEMON ---
services.gpsd = {
enable = true;
devices = [ "/dev/ttyAMA0" ]; # Default port for RPi5/CM5 GPS
nowait = true;
};
# --- USER CONFIGURATION ---
users.users.thierry = {
isNormalUser = true;
description = "Thierry";
extraGroups = [
"wheel" # Sudo
"dialout" # Access to serial/HAM rigs
"plugdev" # Access to USB SDRs
"wireshark" # Packet capture without root
"video" # Hardware acceleration access
"networkmanager"
];
openssh.authorizedKeys.keys = [
keys.users.gortium.main
keys.users.gortium.gitea
];
};
# --- INTERFACE (WAYLAND/SWAY) ---
# Sway is recommended for the uConsole's low resources
programs.sway = {
enable = true;
extraOptions = [ "--unsupported-gpu" ]; # Often needed for RPi
};
# --- SOFTWARE TOOLKITS ---
environment.systemPackages = with pkgs; [
# Base Tools (for your Doom Emacs environment)
emacs-pgtk # Emacs with Wayland support
git # Required for Doom Emacs / Flakes
ripgrep # Fast searching for Emacs/CLI
fd # Better find for Emacs
htop # Resource monitor
tmux # Terminal multiplexer
neovim # Alternative editor
# HAM RADIO (Digital Modes)
js8call # Weak-signal keyboard messaging
wsjtx # FT8, JT65, etc.
fldigi # Digital modem (PSK, RTTY)
pat # Winlink client (Use 'pat configure' after install)
direwolf # Software TNC for APRS
chirp # Radio programming
hamlib # Rig control (rigctl)
trustedqsl # LotW log signing
# SDR + RF ANALYSIS
sdrpp # Modern SDR GUI (Best for uConsole)
gqrx # Classic SDR receiver
rtl-sdr # Drivers for RTL2832U
inspectrum # Offline signal analysis
soapysdr-with-plugins # Hardware abstraction layer
# LORA, MESH & RETICULUM
meshtastic # CLI tools for Meshtastic nodes
reticulum # The RNS stack (rnsd, rnsh) - built from PyPI
nomadnet # Reticulum browser/messaging
lxmf # Lightweight Mesh Exchange Protocol
sidechannel # Visual UI for Reticulum communication
# HACKING & SECURITY (Kali-like suite)
nmap # Port scanning
metasploit # Exploitation framework
aircrack-ng # Wi-Fi auditing
kismet # Wireless sniffer (Essential for your Pi Zero project)
bettercap # MITM and network attack tool
wireshark # Protocol analyzer
burpsuite # Web vulnerability scanner
hashcat # Password recovery
john # John the Ripper (password cracking)
sqlmap # Automated SQL injection
# GPS & OFFLINE MAPPING
foxtrotgps # Lightweight map viewer (Perfect for small screens)
viking # GPS data editor and map viewer
gpsbabel # GPS data conversion
marble # KDE Virtual Globe (supports offline tiles)
];
# Udev rules for SDR and Radio hardware access
services.udev.packages = [
pkgs.rtl-sdr
pkgs.librtlsdr
];
# Enable Wireshark privilege separation
programs.wireshark.enable = true;
# Enable OpenSSH
services.openssh = {
enable = true;
settings.PermitRootLogin = "prohibit-password";
};
# System state version
system.stateVersion = "23.11";
}

View File

@@ -0,0 +1,30 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# uConsole CM5 specific filesystem (SD card boot)
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/FIRMWARE";
fsType = "vfat";
};
swapDevices = [ ];
# uConsole CM5 is ARM64
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
hardware.enableRedistributableFirmware = true;
}

View File

@@ -18,5 +18,9 @@
gitea = ""; gitea = "";
bootstrap = "age1r796v2uldtspawyh863pks74sd2pwcan8j4e4pjzsvkmr3vjja9qpz5ste"; bootstrap = "age1r796v2uldtspawyh863pks74sd2pwcan8j4e4pjzsvkmr3vjja9qpz5ste";
}; };
# uConsole CM5 - key to be generated on first boot
uconsole = {
main = "";
};
}; };
} }