!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

255 Members
86 Servers

Load older messages


SenderMessageTime
28 Jun 2024
@bl0v3:matrix.orgbl0v3nice thanks12:52:47
@bl0v3:matrix.orgbl0v3this should have it somewhat covered12:52:56
@bl0v3:matrix.orgbl0v3say, do you happen to know how i could build the absolute smallest nixos system possible. I may look at the stuff microvm.nix uses as they also shrink their system output.toplevel by a fair bit in terms of deps/size12:54:51
@bl0v3:matrix.orgbl0v3its not like this mainframe would have any issues running a bigger system its just like the less deps i need to cross compile the better for now12:55:49
@bl0v3:matrix.orgbl0v3because once in a while some package or its dependency fails and then some shitty make/ninja/cake/m4/autotools/built.sh whatever build helpers fail to compile it12:57:01
@bl0v3:matrix.orgbl0v3so i then need to fix these and its a big waste of time id much rather focus on getting nixos/nix up and then compile the rest natively as best as possible12:57:56
@bl0v3:matrix.orgbl0v3currently i put this in excluded modules ${nixpkgs}/nixos/modules/profiles/base.nix"12:59:58
@bl0v3:matrix.orgbl0v3and included the headless thing13:00:16
@alex:tunstall.xyzAlex
In reply to @bl0v3:matrix.org
say, do you happen to know how i could build the absolute smallest nixos system possible. I may look at the stuff microvm.nix uses as they also shrink their system output.toplevel by a fair bit in terms of deps/size
It is possible to go well under 1 GiB by removing systemd (and Nix itself, if you don't need it), but doing so involves a lot of blacklisting and deep hacking. For the absolute smallest, you also need to give up compatibility (e.g. by disabling unused kernel modules).
13:48:50
@bl0v3:matrix.orgbl0v3i went with libressl initially but that didn't work out13:57:34
@bl0v3:matrix.orgbl0v3libressl removed support for s390x13:58:52
@bl0v3:matrix.orgbl0v3as in their build system dosn't even detect it 13:59:03
@bl0v3:matrix.orgbl0v3i tried to patch it by copying some headers of the mips platform 13:59:31
@bl0v3:matrix.orgbl0v3(as these aren't platform specific)13:59:45
@bl0v3:matrix.orgbl0v3but as it seems that doesn't really help , even alpine linux gave up on libressl on s390x these days13:59:59
@bl0v3:matrix.orgbl0v3ok16:34:17
@bl0v3:matrix.orgbl0v3so16:34:18
@bl0v3:matrix.orgbl0v3.#nixosConfigurations.z10.config.system.build.toplevel 's drv finished building now16:34:31
@bl0v3:matrix.orgbl0v3for s390x16:34:41
@bl0v3:matrix.orgbl0v3now i gotta figure out how to turn this into a bootable image16:34:53
@aleksana:mozilla.orgaleksana (force me to bed after 18:00 UTC)
In reply to @bl0v3:matrix.org
now i gotta figure out how to turn this into a bootable image
Does it work like traditional bios or UEFI?
18:09:06
@bl0v3:matrix.orgbl0v3
In reply to @aleksana:mozilla.org
Does it work like traditional bios or UEFI?
hell idktbh
18:09:46
@bl0v3:matrix.orgbl0v3but its deffo gonna be a little more complex18:10:13
@bl0v3:matrix.orgbl0v3i honestly just want to make a cdrom or sth18:10:27
@aleksana:mozilla.orgaleksana (force me to bed after 18:00 UTC)You can get an example in nixos-generators, but not necessarily using it18:10:53
@aleksana:mozilla.orgaleksana (force me to bed after 18:00 UTC) Generating an iso from nixosSystem configuration 18:11:13
@bl0v3:matrix.orgbl0v3
In reply to @aleksana:mozilla.org
You can get an example in nixos-generators, but not necessarily using it
yes but like keep in mind this isn't x86
18:11:21
@bl0v3:matrix.orgbl0v3or arm18:11:31
@bl0v3:matrix.orgbl0v3or sparc18:11:33
@bl0v3:matrix.orgbl0v3its an architecture made specifically for mainframes and few ppl are willing to spend 7 digits on a machine and not have some sort of technicean or stuff18:12:12

Show newer messages


Back to Room ListRoom Version: 6