<andi->
samueldr: just a quick thought: compress the boot.img and recover.img files using gzip to remove some space needs from hydra (and to avoid having to download the whole runtime closure). I've started playing with my oneplus3 and android sine I was about to update to android 10 anyway.
greizgh has quit [Quit: greizgh]
greizgh has joined #nixos-aarch64
alp has joined #nixos-aarch64
webster23 has joined #nixos-aarch64
alp has quit [Remote host closed the connection]
alp has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<stego>
Hi here! new nix os user on raspberry pi4! I'm trying to enable the ssh service, but even after editing the configuration.nix file and applying the changes, the service doesn't want to start. Is here someone kind enouth to help me figure out what i'm missing? :) thanks!
<srk>
hello! sure, what's the error?
<srk>
stego: ^
<stego>
Thanks @srk, so, after i try to update the system there is an error that says "Option 'services.awstats.configs.<name>.extraConfig' has no description"
<srk>
ou, weird. do you have awstats and docs enabled? does it happen while building manual?
<srk>
awstats or docs
<stego>
then betore it ends it says "cannot connect to deamon at '/nix/var/nix/deamon-socket/socket' : Connection refused
<srk>
that's weird as well! consult 'systemctl --failed' and 'systemctl status nix-daemon'
<stego>
well i don't think so, I didn't specified them in my onfiguration.nix fiel
<srk>
that kind-of tells you what was used to build the image
<srk>
it will take some time till pi4 support is first-class, kernel looks fine but u-boot is still missing few things
<stego>
yep, I've readden something here and there and it seems that the pi4 is still not well supported by the mainline kernel!
<srk>
I've tried 5.6.10 today but it didn't boot, maybe just the combination of rpi-bootloader and mainline kernel is no good
<srk>
so now it's running 4.19 via linuxPackages_rpi4 /o\
zupo has joined #nixos-aarch64
<stego>
it just seems to be the best performing kernel for now for the pi4 and the gentoo arm64 image is the proof! nice os, but it is just too much for this device hahaah
<stego>
@srk I successfully booted the image that you shared. should now I generate the config files with nixos-generate-configs? :)
<srk>
stego: is that installer image or does it have /etc/nixos/configuration.nix?
alp has quit [Quit: Leaving]
<stego>
the image doeen't have any configuration.nix,so I generated it with the nixos-generate-config, but I just realized that I didn't have to do that, because according to the wiki, i'm going to import it with <nixpkgs/nixos/modules/...> am I correct?
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srk>
stego: the imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix> ]; does set a bootloader and kernelPackages for you and also allows you to build sdImage
<kahiru>
lopsided98: does it mean I can take the latest aarch64 image, dd it onto the sd card, flash uboot and then it should be good to go?
<srk>
stego: so you don't have to repeat all that in your /etc/nixos/configuration.nix
<lopsided98>
kahiru: I think so. Its been a while since I set it up so I don't remember if anything else is needed
<stego>
srk: ok I managed to write a config file and I've just typed nixos-rebuild switch. It seems to work! thanks :)
<srk>
stego: yw! have fun :)
<stego>
srk: next step, setting up my sway environment :D
Robertof_ has joined #nixos-aarch64
Robertof has quit [Read error: Connection reset by peer]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has joined #nixos-aarch64
Robertof__ has joined #nixos-aarch64
Robertof_ has quit [Ping timeout: 256 seconds]
stego has quit [Ping timeout: 256 seconds]
stego has joined #nixos-aarch64
zupo has joined #nixos-aarch64
<samueldr>
andi-: it does, with a somewhat less-pure parameter
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has quit [Ping timeout: 260 seconds]
alp has joined #nixos-aarch64
Robertof_ has joined #nixos-aarch64
Robertof__ has quit [Ping timeout: 246 seconds]
stego has quit [Quit: Lost terminal]
vika_nezrimaya has joined #nixos-aarch64
zupo has joined #nixos-aarch64
<thefloweringash>
wild guess: is the presence of a builder for the nixpkgs-unstable-armv7l jobset determined by packet's spot market? from prometheus it looks like there's been 0 builders for about a week
zupo has quit [Ping timeout: 272 seconds]
zupo has joined #nixos-aarch64
dongcarl has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has quit [Ping timeout: 260 seconds]
<andi->
samueldr: Not in my case. I didn't want to compile things on my own so I just `nix build <store path>` where store path was from the log of https://hydra.nixos.org/build/117066073
<andi->
and those carry a reference to the runtime closure
<samueldr>
oh I see
<samueldr>
I was thinking of the system image, mainly
<andi->
It was actually working well.. considering I had no networking or adb access :D
<samueldr>
if you have a type-c usb hub, and usb ethernet, it can work
<samueldr>
but a PD type-c hub won't charge with it
<andi->
I tried to setup a proper build for my device but it threw some weird errors with `evalWith`
<samueldr>
with nixpkgs-unstable?
<andi->
I wish that stupid purism would ever arrive.. maybe I just need to order anoher phone so I can tinker with the Oneplus..
<samueldr>
uh, nixos-unstable*
<andi->
yeah
<andi->
IIRC it was when I tried to build the installer attribute
<samueldr>
hm
<andi->
let me look it up
<samueldr>
I'm feeling a bit under the weather right now, not sure I'll look into it deeply, but I can at least say whether it should or shouldn't work
<andi->
no pressure, I commited it to https://github.com/andir/nixos-mobile-oneplus3-test, since you are making use if <nixpkgs> in random places around the code I added that shell.nix as workaround to pin things properly without having to pass it on the commandline all the time
<samueldr>
I do want to remove the use NIX_PATH, I should look again at what issues there was
<andi->
I don't know how much you looked into that device but if you say it would be a reasonable amount of effort to get more stuff working on it I might just buy this used thing off ebay for ~80€....
<samueldr>
another oneplus3?
<andi->
yeah
<andi->
I need a phone
<samueldr>
it's part of those I want to give the best support
<samueldr>
and it's also one that has good support in misc. projects, and it's also a phone that you can tinker with freely without fear of bricks
<samueldr>
I verified with an EDL firehose loader and it's possible to read/write the storage, so it's even one that could be repartitioned relatively safely
<samueldr>
because, still unverified, I believe that even if all LUN (hardware partitions) were erased, you could recover using EDL
<samueldr>
(LUNs can't be repartitioned though)
<samueldr>
you could do worse than a oneplus3
<andi->
ok
<andi->
I'll have an eye on the auction then
<samueldr>
I think its only flaw, and it'll be with all other devices, is that damned battery
<samueldr>
yes, sure, it can be changed
<samueldr>
but good luck finding an official one!
<samueldr>
andi-: I think `installer` is broken, what actually concerns me here is why `build.default` won't work
<samueldr>
what idiotic mistake did I make that breaks the config again
<samueldr>
hmm
<samueldr>
andi-: is it normal that `default.nix` wants to `import ./default.nix`?
<andi->
hu
<samueldr>
from your repo :)
<andi->
that should have been configuration.nix /o\
<samueldr>
okay
<samueldr>
I think I see another issue
<andi->
now at least installer terminates without an error and just says there is none
<samueldr>
in configuration.nix you are using the lib/configuration.nix thing
<samueldr>
that should only be used from a nixos eval, not inside a mobile-nixos eval
<andi->
oh yeah then local.nix would be the correct way.
<samueldr>
line 6 of configuration.nix basically imports mobile-nixos, but since you're evaluating from the mobile-nixos import already, you're importing it a second time
<andi->
and that other file should just be in /etc/nixos on the device
<samueldr>
sounds about right
<samueldr>
or I *guess* it could be a normal nixos import using that configuration.nix
<samueldr>
use nix-build -A build.android-bootimg # to get only the boot image, the cross-compiled system is not at all useful