!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

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

Load older messages


SenderMessageTime
22 Aug 2024
@theelevated:matrix.orgtheelevatedsaves the reverse engineering efforts09:35:05
@k900:0upti.meK900There is no "UEFI" or "legacy" on those boards09:35:05
@k900:0upti.meK900It's very bespoke09:35:07
@k900:0upti.meK900And very likely going to make no sense09:35:13
@k900:0upti.meK900And NixOS requires Perl at runtime unless you want to dip into extremely experimental options09:35:35
@k900:0upti.meK900And probably also Python09:35:41
@k900:0upti.meK900So if you really want a system you can rice to be as "bloat free" as possible, you're probably not looking at the right thing09:36:01
@theelevated:matrix.orgtheelevated
In reply to @k900:0upti.me
And NixOS requires Perl at runtime unless you want to dip into extremely experimental options
os or package manager?
09:36:55
@k900:0upti.meK900OS09:37:02
@elvishjerricco:matrix.orgElvishJerriccoyou're not going to get nix to work as a package manager at all on 256M of ram09:37:16
@elvishjerricco:matrix.orgElvishJerriccothe best you'll do is use nix on another machine to build an image file you can boot09:37:26
@elvishjerricco:matrix.orgElvishJerriccobut nixpkgs causes nix evaluation to take quite large amounts of ram for even basic things09:37:45
@theelevated:matrix.orgtheelevated
In reply to @elvishjerricco:matrix.org
you're not going to get nix to work as a package manager at all on 256M of ram
i have the 64 mb version :>
09:38:21
@elvishjerricco:matrix.orgElvishJerriccoand even if you avoid eval'ing with copying NAR closures around, even importing NARs is pretty memory-intensive with Nix (though this has gotten better than it used to be)09:38:42
@elvishjerricco:matrix.orgElvishJerricco * and even if you avoid eval'ing withbycopying NAR closures around, even importing NARs is pretty memory-intensive with Nix (though this has gotten better than it used to be)09:38:48
@elvishjerricco:matrix.orgElvishJerricco * and even if you avoid eval'ing by copying NAR closures around, even importing NARs is pretty memory-intensive with Nix (though this has gotten better than it used to be)09:38:52
@theelevated:matrix.orgtheelevated
In reply to @k900:0upti.me
OS
if we only patch the image and load the nix package manager
09:39:10
@theelevated:matrix.orgtheelevatedcould work??09:39:14
@elvishjerricco:matrix.orgElvishJerriccoagain, there is no way to use it as a package manager on so little ram09:39:30
@k900:0upti.meK900Quite literally doing ANY operation with Nix requires ~2GB of RAM09:39:48
@theelevated:matrix.orgtheelevatedaint it just some c++ code like stated on the github? https://github.com/NixOS/nix09:40:20
@elvishjerricco:matrix.orgElvishJerriccois C++ somehow incapable of using significant amounts of memory?09:40:35
@theelevated:matrix.orgtheelevatedhow can that clog up 2gb+ ??09:40:37
@k900:0upti.meK900By evaluating a giant monorepo of package definitions09:40:56
@elvishjerricco:matrix.orgElvishJerriccoprogramming languages don't determine how much memory is going to be used09:40:56
@k900:0upti.meK900Written in a bespoke language that the "some c++ code" is an implementation of09:41:09
@k900:0upti.meK900With a lot of lazy evaluation and mutual recursion09:41:22
@k900:0upti.meK900And a not great GC09:41:26
@elvishjerricco:matrix.orgElvishJerriccoI was going to say that the only reasonable way to use nix for these things would be to build bootable images for them on another machine, but even then you won't be building nixos images. 256M is a stretch for a nixos image, and 64M just almost certainly won't work09:42:59
@elvishjerricco:matrix.orgElvishJerriccoyou want an actual embedded OS, and nixos itself just isn't suited for that09:43:33

Show newer messages


Back to Room ListRoom Version: 10