refactor: migrate from Codeberg to Gitea and rename rhemawave to radiantwave
- Update all Codeberg URLs to gitea.radiantwavetech.com/RadiantWaveTech/ - Rename flake inputs: rhemawave → radiantwave, rhemawave-dev → radiantwave-dev - Rename NixOS configs: rhemawavekiosk* → radiantwavekiosk* - Update systemd services, data paths, and binary references - Rename plymouth theme files - Update CI workflow, documentation, and build scripts
This commit is contained in:
+15
-15
@@ -1,14 +1,14 @@
|
||||
{ pkgs, rhemawave, upgradeFlakeRef, ... }:
|
||||
{ pkgs, radiantwave, upgradeFlakeRef, ... }:
|
||||
|
||||
let
|
||||
rhemaApp = rhemawave.packages.${pkgs.system}.default;
|
||||
radiantApp = radiantwave.packages.${pkgs.system}.default;
|
||||
myKey = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB4vXx7sOOVAyxdS/N1LEI+L8wYICf+gbzs6Kz7K8Je5 cnclack@pm.me:Thinkpad" ];
|
||||
in
|
||||
{
|
||||
# Included packages
|
||||
environment.systemPackages = [
|
||||
pkgs.cage pkgs.rsync pkgs.dbus pkgs.mesa pkgs.git pkgs.tailscale pkgs.sqlite
|
||||
rhemaApp
|
||||
radiantApp
|
||||
];
|
||||
|
||||
# This populates the EFI partition and tells the NUC how to start NixOS.
|
||||
@@ -53,15 +53,15 @@ in
|
||||
|
||||
# --- Set ownership of Radiantwave files ---
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/kiosk/.local/share/rhemawave 0770 kiosk kiosk -"
|
||||
"d /home/kiosk/.local/share/radiantwave 0770 kiosk kiosk -"
|
||||
];
|
||||
|
||||
system.activationScripts.cleanRadiantFiles = ''
|
||||
rm -rf /home/kiosk/.local/share/rhemawave/audio
|
||||
rm -rf /home/kiosk/.local/share/radiantwave/audio
|
||||
'';
|
||||
|
||||
# --- Backup service: runs before nixos-upgrade ---
|
||||
systemd.services.rhemawave-backup = {
|
||||
systemd.services.radiantwave-backup = {
|
||||
description = "Backup RadiantWave user data before upgrade";
|
||||
before = [ "nixos-upgrade.service" ];
|
||||
wantedBy = [ "nixos-upgrade.service" ];
|
||||
@@ -70,8 +70,8 @@ in
|
||||
User = "kiosk";
|
||||
};
|
||||
script = ''
|
||||
BACKUP_DIR="/home/kiosk/.local/share/rhemawave-backup"
|
||||
SOURCE_DIR="/home/kiosk/.local/share/rhemawave"
|
||||
BACKUP_DIR="/home/kiosk/.local/share/radiantwave-backup"
|
||||
SOURCE_DIR="/home/kiosk/.local/share/radiantwave"
|
||||
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
|
||||
@@ -84,17 +84,17 @@ in
|
||||
};
|
||||
|
||||
# --- Health check service: runs after nixos-upgrade ---
|
||||
systemd.services.rhemawave-healthcheck = {
|
||||
systemd.services.radiantwave-healthcheck = {
|
||||
description = "Verify RadiantWave is running after upgrade, rollback if not";
|
||||
after = [ "nixos-upgrade.service" ];
|
||||
wantedBy = [ "nixos-upgrade.service" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
# Give cage time to start rhemawave after the switch
|
||||
# Give cage time to start radiantwave after the switch
|
||||
ExecStartPre = "${pkgs.coreutils}/bin/sleep 90";
|
||||
};
|
||||
script = ''
|
||||
if ${pkgs.procps}/bin/pgrep -x rhemawave > /dev/null; then
|
||||
if ${pkgs.procps}/bin/pgrep -x radiantwave > /dev/null; then
|
||||
echo "RadiantWave is running, upgrade successful"
|
||||
exit 0
|
||||
fi
|
||||
@@ -130,10 +130,10 @@ in
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
|
||||
# Asset sync + start app
|
||||
mkdir -p /home/kiosk/.local/share/rhemawave
|
||||
${pkgs.rsync}/bin/rsync -ru ${rhemaApp}/share/rhemawave/ /home/kiosk/.local/share/rhemawave/
|
||||
mkdir -p /home/kiosk/.local/share/radiantwave
|
||||
${pkgs.rsync}/bin/rsync -ru ${radiantApp}/share/radiantwave/ /home/kiosk/.local/share/radiantwave/
|
||||
|
||||
exec dbus-run-session cage -- ${rhemaApp}/bin/rhemawave -d -s > /tmp/kiosk.log 2>&1
|
||||
exec dbus-run-session cage -- ${radiantApp}/bin/radiantwave -d -s > /tmp/kiosk.log 2>&1
|
||||
fi
|
||||
'';
|
||||
|
||||
@@ -154,7 +154,7 @@ in
|
||||
# };
|
||||
|
||||
# systemd.services.tailscale-set-hostname = {
|
||||
# description = "Set Tailscale hostname based on the RhemaWave license key";
|
||||
# description = "Set Tailscale hostname based on the RadiantWave license key";
|
||||
# after = [ "tailscale-autoconnect.service" ];
|
||||
# wants = [ "tailscaled.service" ];
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
|
||||
Reference in New Issue
Block a user