24.11, Rustdesk server key mismatch and EXWM broken (but circumventable)

Hi Nixers,
two issues together, the unsolved one is rustdesk-server who decide that ANY id_ed25519 private key is invalid, also the one normally working on 24.05 no clients can use the server getting a key mismatch error, rustdesk-utils validatekeypair id_ed25519.pub id_ed25519 report Invalid secret key and those who generate itself are invalid as well (stripped of the trailing newline, correct key size 88 and 44 bytes etc), trying to use the old version with

    { config, pkgs, ... }:
    let
      nixold = import <nixold> {};
    in {
      environment.systemPackages = [
        nixold.rustdesk-server
      ];
    }

having added back the 24.05 channel does not solve, and I do not really know what can be changed, hbb[rs] home is on a snapshotted zdf volume and zfs diff report no key changes at first try… Does anybody have an idea how to investigate the issue?

For EXWM the services.xserver.exwm try to build emacs28 which seems to be broken, however I circumvent the issue creating a services.displayManager like

  sessionPackages = [
    ((pkgs.writeTextDir "share/xsessions/exwm.desktop" ''
      [Desktop Entry]
      Version=1.0
      Type=XSession
      TryExec=${pkgs.emacs30}/bin/emacs
      Exec=${pkgs.emacs30}/bin/emacs
      Name=exwm
      DesktopNames=exwm
        '').overrideAttrs (_: {passthru.providedSessions = ["exwm"];}))
  ]; # sessionPackages

  defaultSession = "exwm";

and a services.xserver.displayManager session like

  session =
    [ { manage = "desktop";
        name = "exwm";
        start = ''
          systemctl --user import-environment PATH DISPLAY XAUTHORITY DESKTOP_SESSION XDG_CONFIG_DIRS XDG_DATA_DIRS XDG_RUNTIME_DIR XDG_SESSION_ID DBUS_SESSION_BUS_ADDRESS || true
          dbus-update-activation-environment --systemd --all || true
          ${pkgs.emacs30}/bin/emacs &
          waitPID=$!
        '';
      }
    ]; # session

And it work smoothly. I do not know where to report/add the circumventing hack to the wiki or what.

Self-solved, the upstream have changed the key setting format, hbb[sr] now must be run with -k "" for no key or -k "TheKeyNotTheKeyFile", formally it was marked for a NEWER release but backported for unknown reasons…

1 Like