!UUYziobKGGxpovWyAN:nixos.org

Robotnix

247 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix76 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
2 Jan 2025
@countoren:matrix.orgcountoren *

I was able to run an image without signing trying to sign now getting:

$ nix build --impure
warning: Git tree '/home/.../nixpkgs' is dirty
error: builder for '/nix/store/1nqvy0hbxc1s29z5p7l8m7l6kfb7q9j8-instantnoodlep-signed_target_files-2024112323.zip.drv' failed with exit code 1;
       last 1 log lines:
       > Missing KEYSDIR directory, did you use "--option extra-sandbox-paths /keys=..." ?
       For full logs, run 'nix log /nix/store/1nqvy0hbxc1s29z5p7l8m7l6kfb7q9j8-instantnoodlep-signed_target_files-2024112323.zip.drv'.
error: 1 dependencies of derivation '/nix/store/p49s6lqkmwnvs2b7q806byw8indjphnv-instantnoodlep-img-2024112323.zip.drv' failed to build

having this flake:

{
  description = "Robotnix configuration for OnePlus 8 Pro";

  inputs.robotnix.url = "github:nix-community/robotnix/430b818f5e0a94aba9371bebdcc489f636c5e161";

  outputs = { self, robotnix }: {
    robotnixConfigurations."oneplus8pro" = robotnix.lib.robotnixSystem ({ config, pkgs, ... }: {
      # Required options
      device = "instantnoodlep";  # Codename for OnePlus 8 Pro
      flavor = "lineageos";  # Change this to 'lineageos' if you want LineageOS, otherwise keep 'grapheneos' if supported
      androidVersion = 13;

      variant = "user";
      buildDateTime = 1732404420;
      # Optional configurations
      # buildDateTime = 1584398664; # Update if you want to push OTA updates for your custom changes

      # If you have keys for signing, enable this
      signing.enable = true;
      signing.keyStorePath = "/home/.../nixpkgs/phone/keys";
      # Enable ccache if you want faster subsequent builds
 
      apps.fdroid.enable = true;
      microg.enable = true;

      # ccache.enable = true;

      webview.chromium.enable = false;
      webview.prebuilt.enable = false;
      apps.chromium.enable = false;
    });

    # Default package for building the image
    defaultPackage.x86_64-linux = self.robotnixConfigurations."oneplus8pro".img;
  };
}

I assume you guys seen this before, I noticed this issue :
https://github.com/nix-community/robotnix/issues/204
but I didn't figure out the solution yet.

14:40:58
@atemu12:matrix.orgatemu12I've never done signing but have you passed the signing dir into the sandbox as documented?14:51:54
@atemu12:matrix.orgatemu12Using a release script is preferred though I think14:52:07
@countoren:matrix.orgcountoren

I tried something like:

$ nix build --impure --option extra-sendbox-paths /keys=./keys                                             

but I am not sure I am doing correctly

14:55:31
@atemu12:matrix.orgatemu12Are you a trusted user?14:55:50
@countoren:matrix.orgcountorenI should be 14:56:04
@atemu12:matrix.orgatemu12 Try to access that directory from within the sandbox via a e.g. a simple runCommand to verify 14:56:11
@countoren:matrix.orgcountorenmaybe I will try to switch out from flake to be able to change default.nix14:56:59
@atemu12:matrix.orgatemu12 You should be able to modify it with flakes too; they're shit but not that shit 14:57:36
@countoren:matrix.orgcountorenwell flake is downloading the source (of robotnix) to the nix store14:58:31
@countoren:matrix.orgcountorenwell I mean to clone the repo. 14:58:52
@countoren:matrix.orgcountorenin this machine that i switched to I just used the flake without cloning14:59:11
@atemu12:matrix.orgatemu12Ah I see15:01:08

Show newer messages


Back to Room ListRoom Version: 6