| 24 Mar 2023 |
samueldr | and relatedly, can't override a partition once set, since lists compose poorly in the modules system | 19:42:14 |
samueldr | I say "fourth attempt", but really it's the third revision of that second attempt | 19:42:29 |
samueldr | in this branch I have migrated to the image-builder as found in celun and tow-boot
- https://github.com/samueldr-wip/mobile-nixos-wip/commits/wip/misc-rg351
| 19:49:13 |
| 25 Mar 2023 |
qbit | Heh, I thought you wrote it in forth for a sec | 01:01:20 |
| amardeeps joined the room. | 04:44:42 |
matthewcroughan - nix.how | samueldr: On Mobile NixOS, the documentation for the OnePlus 6 does not mention that you need to unlock the bootloader for the device, does that mean that you do not need to unlock the bootloader? | 11:13:45 |
matthewcroughan - nix.how | I suppose it does need to be, in order to follow the LineageOS steps you suggest and offer | 11:18:17 |
matthewcroughan - nix.how | * I suppose it does need to be, in order to follow the LineageOS copy-partition steps you suggest and offer | 11:18:27 |
matthewcroughan - nix.how | I think there's a valid business case for selling Mobile NixOS devices btw, provisioning them and getting them set up with a sensible default config in /etc/nixos/configuration.nix | 12:25:40 |
7c6f434c | Is it a good idea to do rebuilds locally, though? | 12:26:26 |
matthewcroughan - nix.how | Since there's a fair amount of imperative configuration that needs to be done to the device ahead of time, I think people would pay for a device that is just running it already, I certainly would have. | 12:26:57 |
matthewcroughan - nix.how | In reply to @7c6f434c:nitro.chat Is it a good idea to do rebuilds locally, though? You mean nixos-rebuild on the phone? | 12:45:09 |
matthewcroughan - nix.how | Is it a good idea to nixos-rebuild on a raspberry pi? It's kind of up to the user, for sure | 12:45:27 |
matthewcroughan - nix.how | I don't feel good when I do it, but sometimes I do! | 12:45:45 |
matthewcroughan - nix.how | But yeah, I'd be deploying to the phone with nix copy and activating on the phone. | 12:46:02 |
matthewcroughan - nix.how | nix build the toplevel with --store ssh-ng://user@buildserver works | 12:46:35 |
matthewcroughan - nix.how | Or hosting the toplevel closure on a webserver which is pulled with nix copy by a systemd timer and activated, that's a way of doing automated updates. | 12:47:11 |
matthewcroughan - nix.how | that systemd timer could even pop up a UI object that says "Do you wan to update" and wait for a dbus response or something | 12:47:44 |
matthewcroughan - nix.how | * that systemd timer could even pop up a UI object that says "Do you want to update" and wait for a dbus response or something | 12:47:48 |
7c6f434c | In reply to @matthewcroughan:defenestrate.it Is it a good idea to nixos-rebuild on a raspberry pi? It's kind of up to the user, for sure I think RPi is easier to cool, though… | 12:47:51 |
matthewcroughan - nix.how | I mean, one of the benefits for me of running Mobile NixOS was going to be the CPU control | 12:48:09 |
matthewcroughan - nix.how | running at low MHz always, to get the best possible battery | 12:48:33 |
matthewcroughan - nix.how | I don't need much CPU! | 12:48:35 |
7c6f434c | Hm OK, if you have a ton of RAM and just do the rebuilds at slow rates in background and you can have the cache just for the big packages… | 12:49:20 |
matthewcroughan - nix.how | yeah you could even have the rebuild switch happen in a systemd service with very very very low resources in a slice | 12:49:58 |
7c6f434c | In reply to @matthewcroughan:defenestrate.it running at low MHz always, to get the best possible battery Pretty sure that CPUs are designed to make this is not the best possible battery, but nothing has enough load control to make the design come true | 12:50:06 |
matthewcroughan - nix.how | 1cpu 512M memory | 12:50:08 |
7c6f434c | Uhm, let me count the ways 512MiB is not enough for nixos-rebuild | 12:50:30 |
matthewcroughan - nix.how | nix evaluation right? | 12:50:37 |
matthewcroughan - nix.how | It would be enough if we could share the eval cache, something I know is not secure at the moment | 12:50:49 |