!UUYziobKGGxpovWyAN:nixos.org

Robotnix

229 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix69 Servers

Load older messages


SenderMessageTime
6 Jun 2024
@erahhal:matrix.orgerahhalIt was Lineage 18 on a OnePlus3, pretty old22:08:42
@atemu12:matrix.orgAtemuYou really do want ccache to work though. It can speed things up by ~2x with some tweaks.22:11:35
@atemu12:matrix.orgAtemuhttps://github.com/Atemu/robot-config/blob/d6c4357332d626b287e6711d622bb485a4db33ee/common.nix#L16-L1722:14:19
@erahhal:matrix.orgerahhallet me try restarting. It looks like the build is working btw.22:15:29
@erahhal:matrix.orgerahhal looking at the nix build flags and not seeing one that disables sandboxing for a particular path. 22:21:02
@atemu12:matrix.orgAtemu erahhal: Under --option 22:23:05
@atemu12:matrix.orgAtemuYou should probably add this to your nixos config though22:23:46
@atemu12:matrix.orgAtemuBecause it needs you to be a trusted user22:24:10
@erahhal:matrix.orgerahhal Still confused. Looking at the nix.conf options, I don't see something that disables sandboxing for an individual path. Or are you saying to completely disable sandboxing? 22:28:52
@jaen:matrix.orgjaen Try this one? https://nix.dev/manual/nix/2.22/command-ref/conf-file.html#conf-sandbox-paths I've been using --extra-sandbox-paths for now so not 100% it's this, but looks like it 22:34:55
@erahhal:matrix.orgerahhalah, the sandbox-paths mount them into the sandbox. I was thinking the opposite, i.e. that the daemon would have access outside of the sandbox for those paths22:36:06
@erahhal:matrix.orgerahhallet me try that22:36:09
@erahhal:matrix.orgerahhalthanks22:36:12
@erahhal:matrix.orgerahhalSame thing in effect22:36:27
@jaen:matrix.orgjaen * Try this one? https://nix.dev/manual/nix/2.22/command-ref/conf-file.html#conf-sandbox-paths I've been using --extra-sandbox-paths for now so not 100% sure it's this, but looks like it 22:36:43
@erahhal:matrix.orgerahhalRedacted or Malformed Event22:52:07
@erahhal:matrix.orgerahhalOk that worked!23:01:32
@erahhal:matrix.orgerahhalI'll look at cleaning up that PR.23:10:53
@erahhal:matrix.orgerahhal So the one repo it uses when building that is not from github is pantah-kernel. For standard lineage builds, it's using the branch android-14.0.0_r35. Currently greping through the source repos to figure out how the system determines that 23:40:49
@erahhal:matrix.orgerahhalAlso, is it possible to configure the build so that it matches a standard LineageOS build, e.g. I could install over standard lineage and not lose data? Does that involve signing the build? Or anything else?23:41:46
@erahhal:matrix.orgerahhalFound an answer to the first question: https://github.com/LineageOS/android/blob/lineage-21.0/default.xml#L1423:47:37
7 Jun 2024
@erahhal:matrix.orgerahhalOne oddity with ccache is that it never goes much above 1.6G. it will go larger temporarily, then go back down to 1.6G. ccache.conf is present and indeed set to 100G02:59:12
@erahhal:matrix.orgerahhal* One oddity with ccache is that it never goes much above 1.58G. it will go larger temporarily, then go back down to 1.58G. ccache.conf is present and indeed set to 100G03:09:37
@erahhal:matrix.orgerahhalMaybe the conf isn't getting picked up03:20:46
@samueldr:matrix.org@samueldr:matrix.orgor the cache doesn't need more space because it's not being exercised?03:54:40
@samueldr:matrix.org@samueldr:matrix.orgif you're rebuilding the same "moral" thing, I would expect the cache won't change size much03:55:06
@samueldr:matrix.org@samueldr:matrix.org(it's just a guess)04:03:19
@erahhal:matrix.orgerahhalYeah that's totally possible.04:33:44
@atemu12:matrix.orgAtemu
In reply to @erahhal:matrix.org
Also, is it possible to configure the build so that it matches a standard LineageOS build, e.g. I could install over standard lineage and not lose data? Does that involve signing the build? Or anything else?
That should be the default. If it's not, that's a bug
08:27:18
@atemu12:matrix.orgAtemuThough note that your signing keys won't match08:28:50

Show newer messages


Back to Room ListRoom Version: 6