Compare commits
12 Commits
fix/update
...
fix/uconso
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f081d3e19 | |||
| 5aca97e057 | |||
| a51e095717 | |||
| 9ebbb1c0c6 | |||
| 7f11da1878 | |||
| 29cc20bb04 | |||
| 1617ac9149 | |||
| 24f15c98cd | |||
| bdd6d03739 | |||
| a0a6663793 | |||
| b66ffadb79 | |||
| db2bd1d157 |
168
flake.nix
168
flake.nix
@@ -12,10 +12,21 @@
|
|||||||
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";
|
||||||
};
|
};
|
||||||
self.submodules = true;
|
nixpkgs-uconsole.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
|
nixos-uconsole = {
|
||||||
|
url = "github:nixos-uconsole/nixos-uconsole/v1.1.0";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-uconsole";
|
||||||
|
inputs.nixos-raspberrypi.follows = "nixos-raspberrypi";
|
||||||
|
};
|
||||||
|
nixos-raspberrypi = {
|
||||||
|
url = "github:gortium/nixos-raspberrypi/cm5-cross-v1";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-uconsole";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, agenix, lix, ... }@inputs:
|
outputs = { self, nixpkgs, agenix, lix
|
||||||
|
, nixpkgs-uconsole, nixos-uconsole, nixos-raspberrypi
|
||||||
|
, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
keys = import ./lib/keys.nix;
|
keys = import ./lib/keys.nix;
|
||||||
@@ -30,57 +41,116 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
config.permittedInsecurePackages = [
|
config.permittedInsecurePackages = [ "openclaw-2026.3.12" ];
|
||||||
"openclaw-2026.3.12"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
devShell = import ./shells/nix_dev.nix {
|
devShell = import ./shells/nix_dev.nix {
|
||||||
inherit pkgs system agenix;
|
inherit pkgs system agenix;
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
nixosConfigurations = {
|
||||||
nixosConfigurations = {
|
lazyworkhorse = nixpkgs.lib.nixosSystem {
|
||||||
lazyworkhorse = nixpkgs.lib.nixosSystem {
|
specialArgs = { inherit system self keys paths inputs; };
|
||||||
specialArgs = { inherit system self keys paths inputs; };
|
modules = [
|
||||||
modules = [
|
{
|
||||||
{
|
nixpkgs.overlays = overlays;
|
||||||
nixpkgs.overlays = overlays;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.rocmSupport = true;
|
||||||
nixpkgs.config.rocmSupport = true;
|
nixpkgs.config.permittedInsecurePackages = [ "openclaw-2026.3.12" ];
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nix.package = lix.packages.${system}.default;
|
||||||
"openclaw-2026.3.12"
|
}
|
||||||
];
|
agenix.nixosModules.default
|
||||||
nix.package = lix.packages.${system}.default;
|
./hosts/lazyworkhorse/configuration.nix
|
||||||
}
|
./hosts/lazyworkhorse/hardware-configuration.nix
|
||||||
agenix.nixosModules.default
|
./modules/nixos/filesystem/hoardingcow-mount.nix
|
||||||
./hosts/lazyworkhorse/configuration.nix
|
./modules/nixos/services/docker_manager.nix
|
||||||
./hosts/lazyworkhorse/hardware-configuration.nix
|
./modules/nixos/services/open_code_server.nix
|
||||||
./modules/nixos/filesystem/hoardingcow-mount.nix
|
./modules/nixos/services/ollama_init_custom_models.nix
|
||||||
./modules/nixos/services/docker_manager.nix
|
./modules/nixos/services/openclaw_node.nix
|
||||||
./modules/nixos/services/open_code_server.nix
|
./modules/nixos/security/ai-worker-restricted.nix
|
||||||
./modules/nixos/services/ollama_init_custom_models.nix
|
./users/gortium.nix
|
||||||
./modules/nixos/services/openclaw_node.nix
|
./users/ai-worker.nix
|
||||||
./modules/nixos/security/ai-worker-restricted.nix
|
];
|
||||||
./users/gortium.nix
|
};
|
||||||
./users/ai-worker.nix
|
|
||||||
];
|
cyt-pi = nixpkgs.lib.nixosSystem {
|
||||||
};
|
specialArgs = { inherit self keys paths inputs; };
|
||||||
|
modules = [
|
||||||
cyt-pi = nixpkgs.lib.nixosSystem {
|
{
|
||||||
specialArgs = { inherit self keys paths inputs; };
|
nixpkgs.overlays = overlays;
|
||||||
modules = [
|
nixpkgs.config.allowUnfree = true;
|
||||||
{
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
nixpkgs.overlays = overlays;
|
nix.package = lix.packages."aarch64-linux".default;
|
||||||
nixpkgs.config.allowUnfree = true;
|
}
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
./hosts/cyt-pi/configuration.nix
|
||||||
nix.package = lix.packages."aarch64-linux".default;
|
./hosts/cyt-pi/hardware-configuration.nix
|
||||||
}
|
];
|
||||||
./hosts/cyt-pi/configuration.nix
|
};
|
||||||
./hosts/cyt-pi/hardware-configuration.nix
|
|
||||||
];
|
uconsole-cm5 = nixpkgs-uconsole.lib.nixosSystem {
|
||||||
};
|
system = "aarch64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inherit self keys paths inputs;
|
||||||
|
nixos-raspberrypi = nixos-raspberrypi;
|
||||||
|
isCM4 = false;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
nixpkgs.buildPlatform = "x86_64-linux";
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
boot.loader.raspberry-pi.bootloader = "kernel";
|
||||||
|
}
|
||||||
|
nixos-raspberrypi.nixosModules.nixpkgs-rpi
|
||||||
|
# Fix display timings from Rex's kernel: native 720x1280 instead of
|
||||||
|
# rotated 1280x720, plus DCS-based panel detection.
|
||||||
|
({ lib, ... }: {
|
||||||
|
boot.kernelPatches = [{
|
||||||
|
name = "panel-cwu50-rex-timing-fix";
|
||||||
|
patch = ./patches/0008-panel-cwu50-rex-timing-fix.patch;
|
||||||
|
}];
|
||||||
|
})
|
||||||
|
nixos-raspberrypi.nixosModules.raspberry-pi-5.base
|
||||||
|
nixos-raspberrypi.lib.inject-overlays
|
||||||
|
nixos-raspberrypi.lib.inject-overlays-global
|
||||||
|
nixos-uconsole.nixosModules.uconsole-cm5
|
||||||
|
({ config, lib, pkgs, inputs, ... }: let
|
||||||
|
lix-cross = import inputs.nixpkgs-uconsole {
|
||||||
|
localSystem = { system = "x86_64-linux"; };
|
||||||
|
crossSystem = { system = "aarch64-linux"; };
|
||||||
|
overlays = [ inputs.lix.overlays.default ];
|
||||||
|
};
|
||||||
|
in { nix.package = lix-cross.lix; })
|
||||||
|
agenix.nixosModules.default
|
||||||
|
./hosts/uconsole-cm5/configuration.nix
|
||||||
|
./hosts/uconsole-cm5/hardware-configuration.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
devShells.${system}.default = devShell;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devShells.${system}.default = devShell;
|
||||||
|
|
||||||
|
packages.${system} = {
|
||||||
|
uconsole-cm5-image = (nixos-raspberrypi.lib.nixosSystem {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inherit self keys inputs;
|
||||||
|
nixos-raspberrypi = nixos-raspberrypi;
|
||||||
|
isCM4 = false;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
nixpkgs.buildPlatform = system;
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
}
|
||||||
|
nixos-raspberrypi.nixosModules.nixpkgs-rpi
|
||||||
|
nixos-raspberrypi.nixosModules.raspberry-pi-5.base
|
||||||
|
nixos-raspberrypi.lib.inject-overlays-global
|
||||||
|
nixos-raspberrypi.nixosModules.sd-image
|
||||||
|
nixos-uconsole.nixosModules.uconsole-cm5
|
||||||
|
agenix.nixosModules.default
|
||||||
|
./hosts/uconsole-cm5/configuration.nix
|
||||||
|
];
|
||||||
|
}).config.system.build.sdImage;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
# Flakesss
|
# Flakesss
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" "flake-self-attrs" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" "flake-self-attrs" ];
|
||||||
nix.settings.trusted-users = [ "root" "gortium" ];
|
nix.settings.trusted-users = [ "root" "gortium" ];
|
||||||
|
nix.settings.extra-platforms = [ "aarch64-linux" ];
|
||||||
|
|
||||||
|
# QEMU binfmt for cross-building aarch64 NixOS targets
|
||||||
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
# Garbage collection
|
# Garbage collection
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|||||||
171
hosts/uConsole/configuration.nix
Normal file
171
hosts/uConsole/configuration.nix
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
{ config, lib, pkgs, paths, self, keys, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Basic Host Info
|
||||||
|
networking.hostName = "uConsole";
|
||||||
|
time.timeZone = "America/Montreal";
|
||||||
|
i18n.defaultLocale = "en_CA.UTF-8";
|
||||||
|
|
||||||
|
# System State
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
|
# Boot & Hardware (migrated to kernel bootloader per nixos-raspberrypi deprecation notice)
|
||||||
|
boot.loader.raspberry-pi.bootloader = "kernel";
|
||||||
|
# kernel managed by nixos-raspberrypi module — don't override, patches are version-specific
|
||||||
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
# Networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
||||||
|
settings.PasswordAuthentication = lib.mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
|
# User
|
||||||
|
users.users.gortium = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "video" "dialout" "kismet" ];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
keys.users.gortium.main
|
||||||
|
keys.users.gortium.gitea
|
||||||
|
];
|
||||||
|
};
|
||||||
|
security.sudo.extraRules = [
|
||||||
|
{
|
||||||
|
users = [ "gortium" ];
|
||||||
|
commands = [
|
||||||
|
{
|
||||||
|
command = "ALL";
|
||||||
|
options = [ "NOPASSWD" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Package groups
|
||||||
|
# ============================================================
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# ===== Base =====
|
||||||
|
emacs-pgtk
|
||||||
|
git
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
htop
|
||||||
|
tmux
|
||||||
|
neovim
|
||||||
|
|
||||||
|
# ===== HAM Radio =====
|
||||||
|
js8call
|
||||||
|
wsjtx
|
||||||
|
fldigi
|
||||||
|
pat # Winlink client
|
||||||
|
direwolf # AX.25 packet modem
|
||||||
|
chirp # Radio programming tool
|
||||||
|
hamlib # Ham radio control libraries
|
||||||
|
trustedqsl # Logbook of the World (LoTW)
|
||||||
|
|
||||||
|
# ===== SDR / RF =====
|
||||||
|
sdrpp # SDR++ spectrum analyzer
|
||||||
|
gqrx # SDR receiver GUI
|
||||||
|
rtl-sdr # RTL-SDR drivers & utilities
|
||||||
|
inspectrum # Offline signal analysis
|
||||||
|
soapysdr-with-plugins # SoapySDR + hardware support plugins
|
||||||
|
|
||||||
|
# ===== Mesh / LoRa =====
|
||||||
|
meshtastic # Python CLI for Meshtastic devices
|
||||||
|
reticulumStack # Reticulum Network Stack (rnsd, rnsh, rncp, rnx, rnpath, etc.)
|
||||||
|
lxmf # LXMF messaging protocol
|
||||||
|
nomadnet # Nomad Network client
|
||||||
|
|
||||||
|
# ===== Security =====
|
||||||
|
nmap
|
||||||
|
aircrack-ng
|
||||||
|
kismet # Wi-Fi monitor / IDS
|
||||||
|
bettercap # MITM/network attack framework
|
||||||
|
wireshark # Packet analyzer
|
||||||
|
hashcat # GPU password cracker
|
||||||
|
john # John the Ripper
|
||||||
|
sqlmap # SQL injection tool
|
||||||
|
|
||||||
|
# ===== GPS / Maps =====
|
||||||
|
foxtrotgps
|
||||||
|
viking # GPS map editor
|
||||||
|
gpsbabel # GPS data conversion
|
||||||
|
];
|
||||||
|
|
||||||
|
# Packages noted but not in unstable nixpkgs:
|
||||||
|
# - metasploit: unfree; install manually via Git clone
|
||||||
|
# - burpsuite: unfree Java app (Community Edition available for download)
|
||||||
|
# - sidechannel: not a distinct PyPI package; functionality covered by
|
||||||
|
# the Reticulum stack. For LXMF GUI client, install Sideband manually
|
||||||
|
# from github.com/markqvist/Sideband
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Reticulum Service (rnsd)
|
||||||
|
# ============================================================
|
||||||
|
systemd.services.rnsd = {
|
||||||
|
description = "Reticulum Network Stack Daemon";
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
|
after = [ "network-online.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
User = "gortium";
|
||||||
|
Group = "gortium";
|
||||||
|
ExecStart = "${pkgs.reticulumStack}/bin/rnsd";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = "10s";
|
||||||
|
LimitNOFILE = 65536;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Kismet Service (Wi-Fi monitoring / mesh node)
|
||||||
|
# ============================================================
|
||||||
|
systemd.services.kismet = {
|
||||||
|
description = "Kismet Wi-Fi Monitor & IDS";
|
||||||
|
wants = [ "network-online.target" ];
|
||||||
|
after = [ "network-online.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
User = "gortium";
|
||||||
|
Group = "kismet";
|
||||||
|
ExecStart = "${pkgs.kismet}/bin/kismet -c wlan0 --log-base=/home/gortium/kismet_logs --no-nc-ui";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = "10s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Kernel modules for SDR and radio
|
||||||
|
# ============================================================
|
||||||
|
boot.kernelModules = [
|
||||||
|
"88x2bu" # Realtek 8812/8821BU USB WiFi (common adapter)
|
||||||
|
"rtl8xxxu" # RTL8188/8192/8723 USB WiFi
|
||||||
|
"rtl2832_sdr" # RTL-SDR kernel module
|
||||||
|
"dvb_usb_rtl28xxu" # RTL-SDR DVB-T
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.blacklistedKernelModules = [ ];
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Extra udev rules for SDR and HAM radio devices
|
||||||
|
# ============================================================
|
||||||
|
services.udev.packages = with pkgs; [ rtl-sdr ];
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Enable IPv6 for Reticulum mesh
|
||||||
|
# ============================================================
|
||||||
|
networking.enableIPv6 = true;
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# Firewall: open ports for Reticulum (optional)
|
||||||
|
# ============================================================
|
||||||
|
networking.firewall.allowedTCPPorts = [ 22 ]; # SSH only
|
||||||
|
networking.firewall.allowedUDPPorts = [ ];
|
||||||
|
# Reticulum uses its own encryption and doesn't need open ports
|
||||||
|
# for basic mesh operations (peer-to-peer discovery).
|
||||||
|
# For TCP interfaces, open additional ports as needed.
|
||||||
|
}
|
||||||
26
hosts/uConsole/hardware-configuration.nix
Normal file
26
hosts/uConsole/hardware-configuration.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sdhci_pci" "nvme" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
# uConsole CM5 uses NVMe or eMMC for boot storage
|
||||||
|
# The uconsole-cm5 module sets up /boot/firmware and default /
|
||||||
|
# Override device label here if using different storage
|
||||||
|
fileSystems."/" = lib.mkDefault {
|
||||||
|
device = "/dev/disk/by-label/NIXOS_UCM5";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = [ "noatime" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
|
}
|
||||||
81
overlays/reticulum.nix
Normal file
81
overlays/reticulum.nix
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
final: prev: let
|
||||||
|
python3 = final.python3;
|
||||||
|
pyPkgs = python3.pkgs;
|
||||||
|
in {
|
||||||
|
reticulumStack = python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "reticulum";
|
||||||
|
version = "1.2.9";
|
||||||
|
format = "setuptools";
|
||||||
|
src = pyPkgs.fetchPypi {
|
||||||
|
pname = "rns";
|
||||||
|
inherit version;
|
||||||
|
sha256 = "554814231c237b9caacf8df669312e57dd7d3f84b6d4810125087d1a79a75d75";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = with pyPkgs; [ cryptography pyserial ];
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "RNS" ];
|
||||||
|
meta = with final.lib; {
|
||||||
|
description = "Self-configuring, encrypted and resilient mesh networking stack";
|
||||||
|
homepage = "https://reticulum.network/";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
lxmf = python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "lxmf";
|
||||||
|
version = "0.9.8";
|
||||||
|
format = "setuptools";
|
||||||
|
src = pyPkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "30f39f3a975a049c12ee2cfceb3261d24cb5adec881c6821f7354464b3f3650c";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = [ final.reticulumStack ];
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "LXMF" ];
|
||||||
|
meta = with final.lib; {
|
||||||
|
description = "Lightweight Extensible Message Format for Reticulum";
|
||||||
|
homepage = "https://github.com/markqvist/lxmf";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nomadnet = python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "nomadnet";
|
||||||
|
version = "1.1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
src = pyPkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "fa13b64a10e75b705a58024815ab72451700aa726af96d415ba99dec28dfc40a";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = with pyPkgs; [ final.reticulumStack final.lxmf urwid qrcode ];
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "nomadnet" ];
|
||||||
|
meta = with final.lib; {
|
||||||
|
description = "Nomad Network — resilient mesh communications platform";
|
||||||
|
homepage = "https://github.com/markqvist/NomadNet";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
rnsh = python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "rnsh";
|
||||||
|
version = "0.1.7";
|
||||||
|
format = "setuptools";
|
||||||
|
src = pyPkgs.fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "9cb72f25abb1c6d300f8014b264184ff78f592fe88e36094938012990b797c93";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = [ final.reticulumStack ];
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "rnsh" ];
|
||||||
|
meta = with final.lib; {
|
||||||
|
description = "Remote shell over Reticulum";
|
||||||
|
homepage = "https://github.com/acehoss/rnsh";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
45
patches/0008-panel-cwu50-rex-timing-fix.patch
Normal file
45
patches/0008-panel-cwu50-rex-timing-fix.patch
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
--- a/drivers/gpu/drm/panel/panel-cwu50.c
|
||||||
|
+++ b/drivers/gpu/drm/panel/panel-cwu50.c
|
||||||
|
@@ -27,12 +27,12 @@ static const struct drm_display_mode default_mode = {
|
||||||
|
.clock = 61020,
|
||||||
|
- .hdisplay = 1280,
|
||||||
|
- .hsync_start = 1280 + 8,
|
||||||
|
- .hsync_end = 1280 + 8 + 2,
|
||||||
|
- .htotal = 1280 + 8 + 2 + 16,
|
||||||
|
- .vdisplay = 720,
|
||||||
|
- .vsync_start = 720 + 30,
|
||||||
|
- .vsync_end = 720 + 30 + 15,
|
||||||
|
- .vtotal = 720 + 30 + 15 + 15,
|
||||||
|
+ .hdisplay = 720,
|
||||||
|
+ .hsync_start = 720 + 30,
|
||||||
|
+ .hsync_end = 720 + 30 + 15,
|
||||||
|
+ .htotal = 720 + 30 + 15 + 15,
|
||||||
|
+ .vdisplay = 1280,
|
||||||
|
+ .vsync_start = 1280 + 8,
|
||||||
|
+ .vsync_end = 1280 + 8 + 2,
|
||||||
|
+ .vtotal = 1280 + 8 + 2 + 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline struct cwu50 *panel_to_cwu50(struct drm_panel *panel)
|
||||||
|
@@ -586,7 +586,8 @@ static int cwu50_init_sequence2(struct cwu50 *ctx)
|
||||||
|
{
|
||||||
|
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
|
||||||
|
- int err;
|
||||||
|
+ int err;
|
||||||
|
+ u8 buf[4];
|
||||||
|
|
||||||
|
dcs_write_seq(0xE0,0x00);
|
||||||
|
|
||||||
|
@@ -633,6 +634,12 @@ static int cwu50_init_sequence2(struct cwu50 *ctx)
|
||||||
|
|
||||||
|
dcs_write_seq(0x11);// SLPOUT
|
||||||
|
msleep (200);
|
||||||
|
+ dcs_write_seq(0xE0,0x00);
|
||||||
|
+ mipi_dsi_dcs_read(dsi, 0x04, buf, 3);
|
||||||
|
+
|
||||||
|
+ if(buf[0] == 0x39) ctx->is_new_panel = 1;
|
||||||
|
+
|
||||||
|
+ dcs_write_seq(0xE0,0x00);
|
||||||
|
|
||||||
|
dcs_write_seq(0x29);// DSiPON
|
||||||
|
msleep (100);
|
||||||
Reference in New Issue
Block a user