!UUYziobKGGxpovWyAN:nixos.org

Robotnix

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

Load older messages


SenderMessageTime
31 Dec 2024
@oak:universumi.fioak 🏳️‍🌈♥️Was just going to post this :)16:16:19
@kranzes:matrix.orgkranzeswow, their new music app supports jellyfin? that's sick17:37:07
@kranzes:matrix.orgkranzesI know of finamp which is good, but it's cool we have no options now17:37:27
1 Jan 2025
@iooioio:matrix.org@iooioio:matrix.org left the room.10:35:14
@mjolnir:nixos.orgmjolnirchanged room power levels.14:26:28
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/orozen/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/orozen/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:37:51
@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
@countoren:matrix.orgcountoren* in this machine that i switched to I just use the flake without cloning15:01:14
@atemu12:matrix.orgatemu12Cloning and using the local flake should be easy enough15:01:19
@atemu12:matrix.orgatemu12Ahaahaa wait, this is flakes, I have no idea whether that's simple15:01:37
@atemu12:matrix.orgatemu12Right15:01:41
@countoren:matrix.orgcountorenyes true, tho with my experience it still might deffer between flake to nix-build I had some differences before with file path parsing between the 215:02:37
@countoren:matrix.orgcountorenbut it was long ago it might be fine now15:02:57
@atemu12:matrix.orgatemu12You should be able to do the simple sanity check regardless of flakes though15:05:08
@atemu12:matrix.orgatemu12It doesn't depend on robotnix15:05:25
@countoren:matrix.orgcountorenanyway trying to understand it better is KEYSDIR is env var expected by the android build tool?15:05:53
@atemu12:matrix.orgatemu12Come again?15:09:02
@countoren:matrix.orgcountoren

o it talking about it being directory. ```

Missing KEYSDIR directory, did you use "--option extra-sandbox-paths /keys=..." ?


15:10:22

Show newer messages


Back to Room ListRoom Version: 6