Droidspaces-OSS icon indicating copy to clipboard operation
Droidspaces-OSS copied to clipboard

[BUG]: nixosDroidspacesTarballs.minimal fails: pinned nixpkgs lacks `services.journald.settings`

Open Eason20000 opened this issue 3 weeks ago • 0 comments

Kernel Version

6.6.144-4k (LineageOS/robotnix build; Droidspaces GKI kABI patch applied; KernelSU Next and CFS_BANDWIDTH/CGROUP_PIDS enabled with all kernel modules rebuilt from the same tree)

Kernel Source Link (REQUIRED)

https://github.com/LineageOS/android_kernel_oneplus_sm8750 (Base tree; the build uses robotnix/Nix patches and the Neveark sm8750 modules tree.)

Droidspaces Version

7.2.0 (APK versionCode 72001606)

Rooting Method

KernelSU Next v3.4.2 (built-in, GK12)

Device OEM & Model

OnePlus 13T (PKX110 / pagani / OP60F5L1)

Android Version & ROM

LineageOS 23.2 (Android 16), build 2026110816, user / release-keys

Execution Mode

DAEMON

Networking Mode

NAT

Describe the Bug

Building the NixOS tarball from the flake fails during NixOS module evaluation:

$ nix build github:ravindu644/Droidspaces-OSS#nixosDroidspacesTarballs.aarch64-linux.minimal

error:
       … while evaluating the attribute 'config.system.build.tarball'
         at /nix/store/.../lib/modules.nix:402:9:
          401|         options = checked options;
          402|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          403|         _module = checked (config._module);

       … while calling the 'seq' builtin

       (stack trace truncated; use '--show-trace' to get the full trace)

       error: The option `services.journald.settings' does not exist. Definition values:
       - In `/nix/store/...-source/nix/nixos.nix`, via option flake.nixosModules.working-droidspaces-rootfs-minimal:
           {
             Journal = {
               Audit = "no";
               MaxLevelStore = "info";
               MaxRetentionSec = "7day";
           ...

       Did you mean `services.journald.storage', `services.journald.audit' or `services.journald.gateway'?

nix/nixos.nix expects newer NixOS option names:

  • services.journald.settings.Journal
  • services.logind.settings.Login
  • services.logrotate.settings.header.maxsize

But the flake's pinned nixpkgs is:

github:NixOS/nixpkgs/c6e5ca3c836a5f4dd9af9f2c1fc1c38f0fac988a (2026-05-11)

That revision still has the old services.journald.storage / audit / extraConfig options and does not define services.journald.settings.

nixpkgs-with-systemd-v259 is also affected:

github:NixOS/nixpkgs/b86751bc4085f48661017fa226dee99fab6c651b

It also lacks services.journald.settings, so minimal-with-systemd-v259 fails with the same error.

Overriding to current nixos-unstable gets past the option error, which confirms the pinned nixpkgs is the incompatible part:

nix build \
  --override-input nixpkgs github:NixOS/nixpkgs/nixos-unstable \
  github:ravindu644/Droidspaces-OSS#nixosDroidspacesTarballs.aarch64-linux.minimal

After that override, a separate Nix-on-Alpine logrotate id: cannot find name for group ID 103 error is hit during the build. That is an Alpine/Nix sandbox issue and is not the main subject of this report; it occurs after the journald option problem is fixed.

This is a build-time evaluation failure before any container starts, so the execution mode does not affect it. The command was run in DAEMON mode; DIRECT would evaluate the same flake and fail at the same module evaluation.

Steps to Reproduce

  1. Create an Alpine 3.23 Droidspaces container (native aarch64).

  2. Install Nix from the Alpine community repository:

    apk add nix nix-openrc git xz tar curl ca-certificates bash
    rc-update add nix-daemon default
    rc-service nix-daemon start
    mkdir -p /etc/nix
    cat >> /etc/nix/nix.conf <<'EOF'
    experimental-features = nix-command flakes
    EOF
    
  3. Run:

    nix build github:ravindu644/Droidspaces-OSS#nixosDroidspacesTarballs.aarch64-linux.minimal
    
  4. Observe the evaluation error above.

  5. Optionally confirm the pin is the problem:

    nix build \
      --override-input nixpkgs github:NixOS/nixpkgs/nixos-unstable \
      github:ravindu644/Droidspaces-OSS#nixosDroidspacesTarballs.aarch64-linux.minimal
    

Logs / Screenshots

$ nix flake metadata github:ravindu644/Droidspaces-OSS
Resolved URL:  github:ravindu644/Droidspaces-OSS
Nixpkgs input: github:NixOS/nixpkgs/c6e5ca3c836a5f4dd9af9f2c1fc1c38f0fac988a (2026-05-11)
$ nix build github:ravindu644/Droidspaces-OSS#nixosDroidspacesTarballs.aarch64-linux.minimal
error: The option `services.journald.settings' does not exist.
       Did you mean `services.journald.storage', `services.journald.audit' or `services.journald.gateway'?

Checking the three inputs:

c6e5ca3 (pinned nixpkgs):        no services.journald.settings
b86751b (systemd-v259 input):    no services.journald.settings
nixos-unstable (2026-11-07):     services.journald.settings.Journal exists

Suggested fix: bump the nixpkgs input to a revision containing the new services.*.settings options, update the nixpkgs-with-systemd-v259 / nixpkgs-with-systemd-v257 pins as needed, or make nix/nixos.nix conditional on whether options.services.journald.settings exists. A local wrapper flake can work around it, but the upstream flake should build out of the box.

Required Acknowledgments

  • [x] I have verified this is not a duplicate issue.
  • [x] I am using a kernel compiled strictly according to Droidspaces' official documentation.
  • [x] I am NOT using a kernel with 69+ random configs, CRC nukes, or a broken ABI.
  • [x] I have confirmed this issue persists in both Daemon and Direct modes.
  • [ ] I admit that I am a clown for checking this box, confirming I have NOT read these rules.
  • [ ] I admit I did zero research, didn't ask my AI waifu for a fix, and am dropping this here because I'm 100% sure the fault lies with Droidspaces.

Eason20000 avatar Nov 11 '26 15:11 Eason20000