!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

630 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org172 Servers

Load older messages


SenderMessageTime
21 Aug 2024
@rgrunbla:matrix.orgRémy Grünblatt joined the room.08:40:26
@0rb1t:matrix.org0rb1t joined the room.13:21:26
@luna:bddvlpr.comLuna joined the room.16:22:55
@shymega:one.ems.hostDom Rodriguez (shymega) joined the room.16:36:40
@scl:tchncs.deSebastian (he/him) joined the room.19:02:42
@theelevated:matrix.orgtheelevated joined the room.19:53:11
@theelevated:matrix.orgtheelevatedIs there a guide on how to run nixos on non standard arch like arm and riscv? How to compile linux manuelly and deploy it.19:54:22
@k900:0upti.meK900We support aarch64 and to some extent risc-v19:59:39
@k900:0upti.meK900So it really depends on what you're actually looking to do 19:59:57
22 Aug 2024
@theelevated:matrix.orgtheelevatedRedacted or Malformed Event07:50:14
@theelevated:matrix.orgtheelevated
In reply to @k900:0upti.me
So it really depends on what you're actually looking to do
A gentoo like experience which is quickly depolyable (nixos) with a custom mirror and Repo since the device is ressource tight not being able to compile on its own.
07:50:29
@theelevated:matrix.orgtheelevatedSo a ressource stronger device can be the mirror and compile with custom flags07:52:07
@theelevated:matrix.orgtheelevatedIts for a riscv device07:52:13
@elvishjerricco:matrix.orgElvishJerricco theelevated: the big problem with most non-x86 devices is just getting them to start a boot loader, which is rarely standardized unless you're dealing with server hardware. Once you have that working, it's just normal nixos stuff mostly. 08:08:42
@magic_rb:matrix.redalder.orgmagic_rb Once you get into a running system, then a normal nixos-rebuild --target-host will suffice. Problem is getting into a running system 08:35:43
@magic_rb:matrix.redalder.orgmagic_rbDo you happen to have a functional kernel+uboot available? Can be from a different distro, it doesnt matter from where, you just need the source code and hopefully some documentation, but that is also optional with enough determination.08:36:33
@magic_rb:matrix.redalder.orgmagic_rb The kernel should also be relatively recent, though technically it should be possible to make anything 4.4+ work to some degree, id avoid any kernels marked as vendor and those tend to have very nonstandard patches and interfaces. 08:38:32
@magic_rb:matrix.redalder.orgmagic_rb * The kernel should also be relatively recent, though technically it should be possible to make anything 4.4+ work to some degree, id avoid any kernels marked as vendor as those tend to have very nonstandard patches and interfaces. 08:38:47
@magic_rb:matrix.redalder.orgmagic_rbAnd ideal kernel would be 6.0+ which is called something like main or mainline which generally means its a very close fork of mainline linux that is hopefully in the process of being upstreamed08:39:30
@theelevated:matrix.orgtheelevated
In reply to @elvishjerricco:matrix.org
theelevated: the big problem with most non-x86 devices is just getting them to start a boot loader, which is rarely standardized unless you're dealing with server hardware. Once you have that working, it's just normal nixos stuff mostly.
I have some https://milkv.io/duo and they can boot their own 1st party linux.
08:49:46
@theelevated:matrix.orgtheelevatedHow to crosscompile everything from a x86, image it and boot the chip08:50:08
@theelevated:matrix.orgtheelevatedthen I need a custom repo with my pc on lan as a mirror.08:50:21
@elvishjerricco:matrix.orgElvishJerriccoyou're skipping a step08:50:35
@elvishjerricco:matrix.orgElvishJerricco you need to understand how they get their own linux image to boot 08:50:49
@elvishjerricco:matrix.orgElvishJerriccothat's the part that's not normally standardized08:51:16
@k900:0upti.meK900It's also 256MB of RAM08:51:19
@k900:0upti.meK900Which is going to be Not Great for a full size NixOS system08:51:26
@k900:0upti.meK900Maybe something very minimal like openwrt or yocto would work better08:51:42
@magic_rb:matrix.redalder.orgmagic_rbOh yeah 256 is not great for nixos08:56:25
@elvishjerricco:matrix.orgElvishJerricco I wouldn't be surprised if you can get a minimal nixos install to boot on 256M, but you're definitely not going to be running nixos-rebuild or anything on it. You're almost certainly not even going to be able to target it from another machine with nixos-rebuild --target-host given how much memory copying NARs takes. So you'd be stuck with building images on another machine and flashing them to a drive, and then hoping 256M is still enough for nixos and your actual application 08:58:20

Show newer messages


Back to Room ListRoom Version: 10