Skip to content

Conversation

blaggacao
Copy link

Context

  • The pearl dependency sums roughly another ~50-80MB in total
  • This needs to be put into squashfs and ends up increasing RAM requirement (not by the actual 50-80MB but by some potentially linear fraction)

Unfortunately I'm not versed enough in C to reimplement the two packages that are in the critical path.

Call for Help

To create a base-line from which to comfortably start working, if you're versed enough in C, this is what I did so far:

  • I did pipe the perl scripts through AI to create a rough sceleton
  • I wired things together so that the green tests should start indicating that the scripts are working

To run the tests, I had manually had to change permission of a store path:

chmod 400 /nix/store/gy10hwl8l8msabrda2lwc7njw1x27j3p-id_ed25519

You might need to do the same.

@blaggacao blaggacao force-pushed the feat/lower-squashfs-size-unpearl branch from 466b71f to a18ae78 Compare May 10, 2024 13:39
@blaggacao blaggacao force-pushed the feat/lower-squashfs-size-unpearl branch from a18ae78 to ced3ac0 Compare May 10, 2024 16:33
# crictical path of using kexec images
# in combination with nixos-anywhere

# THIS IS NOT FUNCTIONAL
Copy link
Member

@Mic92 Mic92 May 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have sysusers integrated in NixOS, which is already part of systemd: systemd.sysusers.enable
Than we also don't need perl.

Copy link
Author

@blaggacao blaggacao May 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah interesting! I did see it briefly without grasping its purpose or function, at all.

You're saying (?): it's a substitute to the update-users-groups.pl which is awesome, because that file is a lot more complex to rewrite in c than the setup-etc.pl one.

Nice!


imports = [
./nix-settings.nix
./un-pearl.nix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have switch-to-configuration.pl after that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true.

Maybe I did ingest that wrongly, however my current understanding was that nixos-anywhere at "most" requires nixos-install which depends on nixos-enter and if that depends on switch-to-..., then it indeed escaped my attention.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I mean. There is also a switch-to-configuration that the system itself has independent on those nixos tools.

Copy link
Author

@blaggacao blaggacao May 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I guess that was weeded out by system.switch.enable = false; down below

@blaggacao
Copy link
Author

blaggacao commented May 19, 2024

I just realized /profiles/perlless.nix on unstable. So I better close this PR.

The other measures and approaches are still contained in #211

@blaggacao blaggacao closed this May 19, 2024
@blaggacao blaggacao deleted the feat/lower-squashfs-size-unpearl branch May 19, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants