Compare commits
18 Commits
feat/herme
...
feat/temp-
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a3885a036 | |||
| 44b8121edb | |||
| 5aca97e057 | |||
| a51e095717 | |||
| 9ebbb1c0c6 | |||
| 7f11da1878 | |||
| 29cc20bb04 | |||
| 1617ac9149 | |||
| 24f15c98cd | |||
| bdd6d03739 | |||
| a0a6663793 | |||
| b66ffadb79 | |||
| db2bd1d157 | |||
| 36359de6aa | |||
|
|
10b8565fd6 | ||
|
|
f672696b8e | ||
| 0980dca455 | |||
| 96bc20ab70 |
@@ -25,12 +25,3 @@ This document outlines the development conventions for this NixOS-based infrastr
|
|||||||
- **Secrets:** Secrets are managed with `agenix`. Edit encrypted files with `agenix -e <file>`.
|
- **Secrets:** Secrets are managed with `agenix`. Edit encrypted files with `agenix -e <file>`.
|
||||||
- **Modularity:** Structure configurations into logical, reusable modules under `modules/`. New modules should be registered in `modules/nixos/default.nix` to be available to all hosts.
|
- **Modularity:** Structure configurations into logical, reusable modules under `modules/`. New modules should be registered in `modules/nixos/default.nix` to be available to all hosts.
|
||||||
- **Error Handling:** Ensure Nix expressions are robust and handle potential evaluation errors gracefully.
|
- **Error Handling:** Ensure Nix expressions are robust and handle potential evaluation errors gracefully.
|
||||||
|
|
||||||
## Workflow
|
|
||||||
|
|
||||||
- New feature → clean branch from `origin/master` → push → PR on Gitea
|
|
||||||
- Branch naming: `feat/description` (features), `fix/description` (bugs/docs)
|
|
||||||
- Always branch from `origin/master`, never from another feature branch
|
|
||||||
- Submodule changes: commit submodule update in parent repo (the parent commit pins the submodule commit)
|
|
||||||
- PR title should describe the change; body should explain motivation + summary
|
|
||||||
- After PR merge, delete the feature branch
|
|
||||||
|
|||||||
Submodule assets/compose updated: 1ec22ff3fc...dab158da0a
29
flake.nix
29
flake.nix
@@ -12,10 +12,18 @@
|
|||||||
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";
|
||||||
};
|
};
|
||||||
|
nixos-uconsole = {
|
||||||
|
url = "github:nixos-uconsole/nixos-uconsole";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
nixos-raspberrypi = {
|
||||||
|
url = "github:nvmd/nixos-raspberrypi/v1.20260517.0";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
self.submodules = true;
|
self.submodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, agenix, lix, ... }@inputs:
|
outputs = { self, nixpkgs, agenix, lix, 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;
|
||||||
@@ -26,7 +34,7 @@
|
|||||||
"/etc/ssh/ssh_host_ed25519_key"
|
"/etc/ssh/ssh_host_ed25519_key"
|
||||||
"/root/.age/bootstrap.key" ];
|
"/root/.age/bootstrap.key" ];
|
||||||
};
|
};
|
||||||
overlays = [ agenix.overlays.default ];
|
overlays = [ agenix.overlays.default (import ./overlays/reticulum.nix) ];
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
@@ -57,6 +65,7 @@
|
|||||||
./hosts/lazyworkhorse/configuration.nix
|
./hosts/lazyworkhorse/configuration.nix
|
||||||
./hosts/lazyworkhorse/hardware-configuration.nix
|
./hosts/lazyworkhorse/hardware-configuration.nix
|
||||||
./modules/nixos/filesystem/hoardingcow-mount.nix
|
./modules/nixos/filesystem/hoardingcow-mount.nix
|
||||||
|
./modules/nixos/filesystem/poup-16t-disk.nix
|
||||||
./modules/nixos/services/docker_manager.nix
|
./modules/nixos/services/docker_manager.nix
|
||||||
./modules/nixos/services/open_code_server.nix
|
./modules/nixos/services/open_code_server.nix
|
||||||
./modules/nixos/services/ollama_init_custom_models.nix
|
./modules/nixos/services/ollama_init_custom_models.nix
|
||||||
@@ -80,6 +89,22 @@
|
|||||||
./hosts/cyt-pi/hardware-configuration.nix
|
./hosts/cyt-pi/hardware-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
uConsole = nixos-raspberrypi.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit self keys paths inputs nixos-raspberrypi; };
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
|
nix.package = lix.packages."aarch64-linux".default;
|
||||||
|
}
|
||||||
|
nixos-raspberrypi.nixosModules.raspberry-pi-5.base
|
||||||
|
nixos-uconsole.nixosModules.uconsole-cm5
|
||||||
|
./hosts/uConsole/configuration.nix
|
||||||
|
./hosts/uConsole/hardware-configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
devShells.${system}.default = devShell;
|
devShells.${system}.default = devShell;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,9 +8,21 @@
|
|||||||
# NAS Mounting
|
# NAS Mounting
|
||||||
hoardingcow-mount.enable = true;
|
hoardingcow-mount.enable = true;
|
||||||
|
|
||||||
|
# 16TB btrfs storage disk (WD Red Pro — Poup_16T — LUKS2 + btrfs + btrbk snapshots)
|
||||||
|
# ⚠ SETUP REQUIRED: Connect the disk, get the LUKS UUID with 'blkid /dev/sdb',
|
||||||
|
# then set gortium.poup16t.luksUuid here and deploy.
|
||||||
|
# gortium.poup16t = {
|
||||||
|
# enable = true;
|
||||||
|
# luksUuid = "REPLACE_ME_WITH_REAL_UUID";
|
||||||
|
# };
|
||||||
|
|
||||||
# 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 = {
|
||||||
@@ -207,6 +219,7 @@
|
|||||||
ai = {
|
ai = {
|
||||||
path = self + "/assets/compose/ai";
|
path = self + "/assets/compose/ai";
|
||||||
envFile = config.age.secrets.containers_env.path;
|
envFile = config.age.secrets.containers_env.path;
|
||||||
|
ports = [ 22000 ]; # Syncthing TCP sync
|
||||||
};
|
};
|
||||||
|
|
||||||
cloudstorage = {
|
cloudstorage = {
|
||||||
|
|||||||
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";
|
||||||
|
}
|
||||||
121
modules/nixos/filesystem/poup-16t-disk.nix
Normal file
121
modules/nixos/filesystem/poup-16t-disk.nix
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.gortium.poup16t;
|
||||||
|
luksName = cfg.luksName;
|
||||||
|
in
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
options.gortium.poup16t = {
|
||||||
|
enable = mkEnableOption "Poup_16T storage disk (btrfs + LUKS + btrbk snapshots)";
|
||||||
|
|
||||||
|
luksUuid = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = ''
|
||||||
|
UUID of the LUKS partition on the 16TB disk (WD Red Pro).
|
||||||
|
|
||||||
|
Find this by running as root when the disk is connected:
|
||||||
|
blkid /dev/sdb # or wherever the disk appears
|
||||||
|
lsblk -o NAME,SIZE,FSTYPE,UUID
|
||||||
|
|
||||||
|
Since btrfs is inside LUKS, the FS UUID is hidden — use the
|
||||||
|
LUKS partition UUID from blkid (it'll show TYPE=\"crypto_LUKS\").
|
||||||
|
'';
|
||||||
|
example = "00000000-0000-0000-0000-000000000000";
|
||||||
|
};
|
||||||
|
|
||||||
|
luksName = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "poup_16t";
|
||||||
|
description = "Name for the LUKS /dev/mapper/ mapping";
|
||||||
|
};
|
||||||
|
|
||||||
|
mountPoint = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/mnt/Poup_16T";
|
||||||
|
description = "Mount point for the 16TB data disk";
|
||||||
|
};
|
||||||
|
|
||||||
|
btrfsOptions = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [ "defaults" "noatime" "compress=zstd:3" "nofail" ];
|
||||||
|
description = "Mount options for the btrfs filesystem. 'nofail' ensures boot succeeds when disk is disconnected.";
|
||||||
|
};
|
||||||
|
|
||||||
|
btrbk = {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "Enable btrbk snapshot management on this volume";
|
||||||
|
};
|
||||||
|
|
||||||
|
schedule = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "daily";
|
||||||
|
description = "systemd calendar event for btrbk (e.g. 'daily', 'hourly', '*-*-* 00:00:00')";
|
||||||
|
};
|
||||||
|
|
||||||
|
preserveMin = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "2d";
|
||||||
|
description = "btrbk snapshot_preserve_min — minimum age before pruning";
|
||||||
|
};
|
||||||
|
|
||||||
|
preserve = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "14d 4w 3m";
|
||||||
|
description = "btrbk snapshot_preserve — retention policy (daily, weekly, monthly)";
|
||||||
|
};
|
||||||
|
|
||||||
|
snapshotDir = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = ".snapshots";
|
||||||
|
description = "Directory name for snapshots relative to volume root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# Enable btrfs kernel support (no DKMS needed — it's in-tree)
|
||||||
|
boot.supportedFilesystems = [ "btrfs" ];
|
||||||
|
|
||||||
|
# Install btrfs administration tools
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btrfs-progs # mkfs.btrfs, btrfs, fsck, balance, scrub
|
||||||
|
btrbk # Snapshot management + rotation
|
||||||
|
];
|
||||||
|
|
||||||
|
# LUKS2 unlock at boot (uses keyfile or prompts if unavailable)
|
||||||
|
# Since the disk may be disconnected, initrd times out gracefully (~30s)
|
||||||
|
boot.initrd.luks.devices.${luksName} = {
|
||||||
|
device = "/dev/disk/by-uuid/${cfg.luksUuid}";
|
||||||
|
preLVM = false;
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Mount the unlocked mapper device as btrfs
|
||||||
|
fileSystems.${cfg.mountPoint} = {
|
||||||
|
device = "/dev/mapper/${luksName}";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = cfg.btrfsOptions;
|
||||||
|
};
|
||||||
|
|
||||||
|
# btrbk — automated snapshot creation and rotation
|
||||||
|
services.btrbk = mkIf cfg.btrbk.enable {
|
||||||
|
instances.poup16t = {
|
||||||
|
onCalendar = cfg.btrbk.schedule;
|
||||||
|
settings = {
|
||||||
|
snapshot_preserve_min = cfg.btrbk.preserveMin;
|
||||||
|
snapshot_preserve = cfg.btrbk.preserve;
|
||||||
|
|
||||||
|
volume.${cfg.mountPoint} = {
|
||||||
|
snapshot_create = "always";
|
||||||
|
snapshot_dir = cfg.btrbk.snapshotDir;
|
||||||
|
subvolume = ".";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user