28 Jun 2024 |
bl0v3 | nice thanks | 12:52:47 |
bl0v3 | this should have it somewhat covered | 12:52:56 |
bl0v3 | 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 | 12:54:51 |
bl0v3 | its 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 now | 12:55:49 |
bl0v3 | because 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 it | 12:57:01 |
bl0v3 | so 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 possible | 12:57:56 |
bl0v3 | currently i put this in excluded modules ${nixpkgs}/nixos/modules/profiles/base.nix" | 12:59:58 |
bl0v3 | and included the headless thing | 13:00:16 |
Alex | 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 | i went with libressl initially but that didn't work out | 13:57:34 |
bl0v3 | libressl removed support for s390x | 13:58:52 |
bl0v3 | as in their build system dosn't even detect it | 13:59:03 |
bl0v3 | i tried to patch it by copying some headers of the mips platform | 13:59:31 |
bl0v3 | (as these aren't platform specific) | 13:59:45 |
bl0v3 | but as it seems that doesn't really help , even alpine linux gave up on libressl on s390x these days | 13:59:59 |
bl0v3 | ok | 16:34:17 |
bl0v3 | so | 16:34:18 |
bl0v3 | .#nixosConfigurations.z10.config.system.build.toplevel 's drv finished building now | 16:34:31 |
bl0v3 | for s390x | 16:34:41 |
bl0v3 | now i gotta figure out how to turn this into a bootable image | 16:34:53 |
aleksana (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 | In reply to @aleksana:mozilla.org Does it work like traditional bios or UEFI? hell idktbh | 18:09:46 |
bl0v3 | but its deffo gonna be a little more complex | 18:10:13 |
bl0v3 | i honestly just want to make a cdrom or sth | 18:10:27 |
aleksana (force me to bed after 18:00 UTC) | You can get an example in nixos-generators, but not necessarily using it | 18:10:53 |
aleksana (force me to bed after 18:00 UTC) | Generating an iso from nixosSystem configuration | 18:11:13 |
bl0v3 | 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 | or arm | 18:11:31 |
bl0v3 | or sparc | 18:11:33 |
bl0v3 | its 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 stuff | 18:12:12 |